I have a bigger question:
I want to implement an own chat - user - event for our game, so if someone sends a chat message, the eventreceiver calls the needed functions (send it to others, print it on screen, etc...)
So, how do I define an own user-event? Do I have to create a new class with a certain IEventType - Interface?
How is the event called then?
and how do I call the new event-type in the eventreceiver?
Code: Select all
if (event.EventType == irr::EET_USER_EVENT)
{
if(event.UserEvent.UserData1 == blah)
{
blah;
}
}
Lo_Ord