From c7cad03f0a98402a7409fa4b1abebf3bfdb5d1a6 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 16 Dec 2023 18:53:50 +0300 Subject: [PATCH] Rename ecs::registration_token -> ecs::token --- libs/ecs/include/psemek/ecs/container.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ecs/include/psemek/ecs/container.hpp b/libs/ecs/include/psemek/ecs/container.hpp index 7c8bab06..75141118 100644 --- a/libs/ecs/include/psemek/ecs/container.hpp +++ b/libs/ecs/include/psemek/ecs/container.hpp @@ -19,7 +19,7 @@ namespace psemek::ecs { using query_cache = std::shared_ptr; - using registration_token = std::shared_ptr; + using token = std::shared_ptr; // TODO: // - Fully document which functions can be called from which callbacks @@ -170,7 +170,7 @@ namespace psemek::ecs */ // TODO: implement template - 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 - 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 - registration_token watch(Function && function); + token watch(Function && function); private: detail::entity_list entity_list_;