Skip to content

Commit

Permalink
Add ecsm prefix to the event defines
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Nov 7, 2024
1 parent 80d1037 commit eeb5d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/ecsm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ class SystemExt;
* @brief Subscribes @ref System function to the event.
*/
#define ECSM_SUBSCRIBE_TO_EVENT(name, func) \
Manager::Instance::get()->subscribeToEvent(name, std::bind(&func, this))
ecsm::Manager::Instance::get()->subscribeToEvent(name, std::bind(&func, this))
/**
* @brief Unsubscribes @ref System function from the event.
*/
#define ECSM_UNSUBSCRIBE_FROM_EVENT(name, func) \
Manager::Instance::get()->unsubscribeFromEvent(name, std::bind(&func, this))
ecsm::Manager::Instance::get()->unsubscribeFromEvent(name, std::bind(&func, this))

/**
* @brief Subscribes @ref System function to the event if exist.
*/
#define ECSM_TRY_SUBSCRIBE_TO_EVENT(name, func) \
Manager::Instance::get()->trySubscribeToEvent(name, std::bind(&func, this))
ecsm::Manager::Instance::get()->trySubscribeToEvent(name, std::bind(&func, this))
/**
* @brief Unsubscribes @ref System function from the event if exist.
*/
#define ECSM_TRY_UNSUBSCRIBE_FROM_EVENT(name, func) \
Manager::Instance::get()->tryUnsubscribeFromEvent(name, std::bind(&func, this))
ecsm::Manager::Instance::get()->tryUnsubscribeFromEvent(name, std::bind(&func, this))

/***********************************************************************************************************************
* @brief Base component structure.
Expand Down

0 comments on commit eeb5d79

Please sign in to comment.