Skip to content

Commit

Permalink
Update IEventListener.h
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jul 17, 2024
1 parent 2704edb commit f314e79
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/BML/IEventListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,26 @@ namespace BML {
*/
class IEventListener {
public:
/**
* @brief Called when an event is registered.
* @param eventType The type of the event.
* @param eventName The name of the event.
*/
virtual void OnRegister(EventType eventType, const char *eventName) {}

/**
* @brief Called when an event is unregistered.
* @param eventType The type of the event.
* @param eventName The name of the event.
*/
virtual void OnUnregister(EventType eventType, const char *eventName) {}

/**
* @brief Called when an event is renamed.
* @param eventType The type of the event.
* @param newName The new name of the event.
* @param oldName The old name of the event.
*/
virtual void OnEventRenamed(EventType eventType, const char *newName, const char *oldName) {}

/**
Expand Down

0 comments on commit f314e79

Please sign in to comment.