TrueSync
|
TrueSync.PhotonTrueSyncCommunicator Class Reference
Truesync's ICommunicator implementation based on PUN. More...
Inheritance diagram for TrueSync.PhotonTrueSyncCommunicator:

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 ICommunicator implementation based on PUN.
Definition at line 8 of file PhotonTrueSyncCommunicator.cs.
Member Function Documentation
void TrueSync.PhotonTrueSyncCommunicator.AddEventListener | ( | OnEventReceived | onEventReceived | ) |
Adds an event listener to handle received custom events.
- Parameters
-
onEventReceived Implementation of OnEventReceived delegate.
Implements ICommunicator.
Definition at line 38 of file PhotonTrueSyncCommunicator.cs.
void TrueSync.PhotonTrueSyncCommunicator.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
Implements ICommunicator.
Definition at line 27 of file PhotonTrueSyncCommunicator.cs.
The documentation for this class was generated from the following file:
Generated by
