Rename ecs::registration_token -> ecs::token
This commit is contained in:
parent
76e43590e9
commit
c7cad03f0a
1 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ namespace psemek::ecs
|
|||
{
|
||||
|
||||
using query_cache = std::shared_ptr<detail::query_cache>;
|
||||
using registration_token = std::shared_ptr<void>;
|
||||
using token = std::shared_ptr<void>;
|
||||
|
||||
// TODO:
|
||||
// - Fully document which functions can be called from which callbacks
|
||||
|
|
@ -170,7 +170,7 @@ namespace psemek::ecs
|
|||
*/
|
||||
// TODO: implement
|
||||
template <typename ... Components, typename Function>
|
||||
registration_token constructor(Function && function);
|
||||
token constructor(Function && function);
|
||||
|
||||
/** Register a destructor. Each time an entity is destroyed that has
|
||||
* the specified set of components (including detaching components),
|
||||
|
|
@ -188,7 +188,7 @@ namespace psemek::ecs
|
|||
*/
|
||||
// TODO: implement
|
||||
template <typename ... Components, typename Function>
|
||||
registration_token destructor(Function && function);
|
||||
token destructor(Function && function);
|
||||
|
||||
/** Register a component modification callback. Each time an entity that has
|
||||
* the specified set of components is modified, and the modification only
|
||||
|
|
@ -211,7 +211,7 @@ namespace psemek::ecs
|
|||
*/
|
||||
// TODO: implement
|
||||
template <typename ... Components, typename Function>
|
||||
registration_token watch(Function && function);
|
||||
token watch(Function && function);
|
||||
|
||||
private:
|
||||
detail::entity_list entity_list_;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue