SPIN Framework
|
#include <EventHandler.h>
Public Member Functions | |
virtual void | onServerChange (std::vector< InfoMessage * > serverList) |
virtual void | onSceneMessage (const char *, lo_arg **, int) |
virtual void | onNodeMessage (ReferencedNode *, const char *, lo_arg **, int) |
virtual void | onInfoMessage (spin::InfoMessage *) |
EventHandler can be inherited in order to be receive notifications whenever the spin context receives a message.
virtual void spin::EventHandler::onInfoMessage | ( | spin::InfoMessage * | ) | [inline, virtual] |
Event handler for info messages.
Note: this is sent repeatedly at the ping rate of the server (but only in the case where this spin context is running in client mode).
virtual void spin::EventHandler::onNodeMessage | ( | ReferencedNode * | , |
const char * | , | ||
lo_arg ** | , | ||
int | |||
) | [inline, virtual] |
Event handler for node messages
virtual void spin::EventHandler::onSceneMessage | ( | const char * | , |
lo_arg ** | , | ||
int | |||
) | [inline, virtual] |
Event handler for scene messages (eg, createNode, deleteNode, etc).
virtual void spin::EventHandler::onServerChange | ( | std::vector< InfoMessage * > | serverList | ) | [inline, virtual] |
An event that occurs whenever the server list changes (spin clients only)