Photon Unity Networking 2
2.52
Static Public Member Functions | |
| static void | SetTurn (this Room room, int turn, bool setStartTime=false) |
| Sets the turn. More... | |
| static int | GetTurn (this RoomInfo room) |
| Gets the current turn from a RoomInfo More... | |
| static int | GetTurnStart (this RoomInfo room) |
| Returns the start time when the turn began. This can be used to calculate how long it's going on. More... | |
| static int | GetFinishedTurn (this Player player) |
| gets the player's finished turn (from the ROOM properties) More... | |
| static void | SetFinishedTurn (this Player player, int turn) |
| Sets the player's finished turn (in the ROOM properties) More... | |
Static Public Attributes | |
| static readonly string | TurnPropKey = "Turn" |
| currently ongoing turn number More... | |
| static readonly string | TurnStartPropKey = "TStart" |
| start (server) time for currently ongoing turn (used to calculate end) More... | |
| static readonly string | FinishedTurnPropKey = "FToA" |
| Finished Turn of Actor (followed by number) More... | |
|
static |
gets the player's finished turn (from the ROOM properties)
| player | Player reference |
|
static |
Gets the current turn from a RoomInfo
| room | RoomInfo reference |
|
static |
Returns the start time when the turn began. This can be used to calculate how long it's going on.
| room | Room. |
|
static |
Sets the player's finished turn (in the ROOM properties)
| player | Player Reference |
| turn | Turn Index |
|
static |
Sets the turn.
| room | Room reference |
| turn | Turn index |
| setStartTime | If set to true set start time. |
|
static |
Finished Turn of Actor (followed by number)
|
static |
currently ongoing turn number
|
static |
start (server) time for currently ongoing turn (used to calculate end)