Skip to content

Commit

Permalink
Update IEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jul 4, 2024
1 parent 97dd83a commit e968f57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/BML/IEventListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ namespace BML {
virtual const char *GetName() const = 0;
virtual int GetPriority() const { return 0; }

virtual void OnRegister(EventType eventType, const char *eventName) = 0;
virtual void OnUnregister(EventType eventType, const char *eventName) = 0;
virtual void OnEventRenamed(EventType eventType, const char *newName, const char *oldName) = 0;
virtual void OnRegister(EventType eventType, const char *eventName) {}
virtual void OnUnregister(EventType eventType, const char *eventName) {}
virtual void OnEventRenamed(EventType eventType, const char *newName, const char *oldName) {}

/**
* @brief Called by EventManager when an event occurs.
Expand Down

0 comments on commit e968f57

Please sign in to comment.