4 public delegate
void OnEventReceived(byte eventCode,
object content);
23 void OpRaiseEvent(byte eventCode,
object message,
bool reliable,
int[] toPlayers);
TrueSync's communicator interface.
int RoundTripTime()
Returns the roundtrip time between local player and server.
void OpRaiseEvent(byte eventCode, object message, bool reliable, int[] toPlayers)
Raises a custom event to be sent to all other players.
void AddEventListener(OnEventReceived onEventReceived)
Adds an event listener to handle received custom events.