TrueSync
ICommunicator.cs
1 
4 public delegate void OnEventReceived(byte eventCode, object content);
5 
9 public interface ICommunicator {
10 
14  int RoundTripTime();
15 
23  void OpRaiseEvent(byte eventCode, object message, bool reliable, int[] toPlayers);
24 
30  void AddEventListener(OnEventReceived onEventReceived);
31 
32 }
TrueSync's communicator interface.
Definition: ICommunicator.cs:9
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.