TrueSync
|
TrueSync.TrueSyncBehaviour Class Reference
Represents each player's behaviour simulated on every machine connected to the game. More...
Inheritance diagram for TrueSync.TrueSyncBehaviour:

Public Member Functions | |
void | SetGameInfo (TSPlayerInfo localOwner, int numberOfPlayers) |
It is not called for instances of TrueSyncBehaviour. | |
virtual void | OnSyncedStart () |
Called once when the object becomes active. | |
virtual void | OnSyncedStartLocalPlayer () |
Called once on instances owned by the local player after the object becomes active. | |
virtual void | OnGamePaused () |
Called when the game has paused. | |
virtual void | OnGameUnPaused () |
Called when the game has unpaused. | |
virtual void | OnGameEnded () |
Called when the game has ended. | |
virtual void | OnPreSyncedUpdate () |
Called before OnSyncedUpdate. More... | |
virtual void | OnSyncedUpdate () |
Game updates goes here. More... | |
virtual void | OnSyncedInput () |
Get local player data. More... | |
virtual void | OnPlayerDisconnection (int playerId) |
Callback called when a player get disconnected. | |
Public Attributes | |
int | numberOfPlayers |
Number of players connected to the game. | |
int | ownerIndex = -1 |
Index of the owner at initial players list. | |
TSPlayerInfo | owner |
Basic info about the owner of this behaviour. | |
TSPlayerInfo | localOwner |
Basic info about the local player. | |
Properties | |
TSTransform | tsTransform [get] |
Returns the TSTransform attached. | |
TSTransform2D | tsTransform2D [get] |
Returns the TSTransform2D attached. | |
TSRigidBody | tsRigidBody [get] |
Returns the TSRigidBody attached. | |
TSRigidBody2D | tsRigidBody2D [get] |
Returns the TSRigidBody2D attached. | |
TSCollider | tsCollider [get] |
Returns the TSCollider attached. | |
TSCollider2D | tsCollider2D [get] |
Returns the TSCollider2D attached. | |
Detailed Description
Represents each player's behaviour simulated on every machine connected to the game.
Definition at line 9 of file TrueSyncBehaviour.cs.
Member Function Documentation
|
virtual |
Called before OnSyncedUpdate.
Called once every lockstepped frame.
Definition at line 159 of file TrueSyncBehaviour.cs.
|
virtual |
Get local player data.
Called once every lockstepped frame.
Definition at line 173 of file TrueSyncBehaviour.cs.
|
virtual |
Game updates goes here.
Called once every lockstepped frame.
Definition at line 166 of file TrueSyncBehaviour.cs.
The documentation for this class was generated from the following file:
Generated by
