|
TrueSync
|
ICommunicator Interface Reference
TrueSync's communicator interface. More...
Inheritance diagram for ICommunicator:
Public Member Functions | |
| 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. More... | |
| void | AddEventListener (OnEventReceived onEventReceived) |
| Adds an event listener to handle received custom events. More... | |
Detailed Description
TrueSync's communicator interface.
Definition at line 9 of file ICommunicator.cs.
Member Function Documentation
| void ICommunicator.AddEventListener | ( | OnEventReceived | onEventReceived | ) |
Adds an event listener to handle received custom events.
- Parameters
-
onEventReceived Implementation of OnEventReceived delegate.
Implemented in TrueSync.PhotonTrueSyncCommunicator.
| void ICommunicator.OpRaiseEvent | ( | byte | eventCode, |
| object | message, | ||
| bool | reliable, | ||
| int[] | toPlayers | ||
| ) |
Raises a custom event to be sent to all other players.
- Parameters
-
eventCode Code of the custom event message Message to be sent in event's body reliable If true it should have a guaranteed delivery
Implemented in TrueSync.PhotonTrueSyncCommunicator.
The documentation for this interface was generated from the following file:
- C:/Jeff/Projetos/Unit3d/truesync/Assets/TrueSync/Core/ICommunicator.cs
Generated by
1.8.11