TrueSync
Public Member Functions | Public Attributes | Properties | List of all members
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 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.
 

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 void TrueSync.TrueSyncBehaviour.OnPreSyncedUpdate ( )
virtual

Called before OnSyncedUpdate.

Called once every lockstepped frame.

Definition at line 79 of file TrueSyncBehaviour.cs.

virtual void TrueSync.TrueSyncBehaviour.OnSyncedInput ( )
virtual

Get local player data.

Called once every lockstepped frame.

Definition at line 93 of file TrueSyncBehaviour.cs.

virtual void TrueSync.TrueSyncBehaviour.OnSyncedUpdate ( )
virtual

Game updates goes here.

Called once every lockstepped frame.

Definition at line 86 of file TrueSyncBehaviour.cs.


The documentation for this class was generated from the following file: