Photon Unity Networking 2
2.12
|
TurnExtensions Class Reference
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... | |
Member Function Documentation
|
static |
gets the player's finished turn (from the ROOM properties)
- Returns
- The finished turn index
- Parameters
-
player Player reference
|
static |
Gets the current turn from a RoomInfo
- Returns
- The turn index
- Parameters
-
room RoomInfo reference
|
static |
Returns the start time when the turn began. This can be used to calculate how long it's going on.
- Returns
- The turn start.
- Parameters
-
room Room.
|
static |
Sets the player's finished turn (in the ROOM properties)
- Parameters
-
player Player Reference turn Turn Index
|
static |
Sets the turn.
- Parameters
-
room Room reference turn Turn index setStartTime If set to true
set start time.
Member Data Documentation
|
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)