mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
Make mSubscribers case-insensitive.
This commit is contained in:
parent
d08e594316
commit
94d32b5fae
1 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ class EventManagerListener : public Dispatcher::IMessageListener
|
|||
SimpleHashTable< Vector<Subscriber> > mSubscribers;
|
||||
|
||||
public:
|
||||
// Ensure that the subscriber map doesn't use case-sensitive string comparisons.
|
||||
EventManagerListener(): mSubscribers(64, false) {}
|
||||
|
||||
/// Called by the EventManager queue when an event is triggered. Calls all listeners subscribed to the triggered event.
|
||||
virtual bool onMessageReceived( StringTableEntry queue, const char* event, const char* data );
|
||||
virtual bool onMessageObjectReceived( StringTableEntry queue, Message *msg ) { return true; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue