Manages creation of player prefabs and lockstep execution.
More...
|
static TrueSyncConfig | TrueSyncGlobalConfig [get] |
|
static FP | DeltaTime [get] |
| Returns the deltaTime between two simulation calls.
|
|
static FP | Time [get] |
| Returns the time elapsed since the beginning of the simulation.
|
|
static int | Ticks [get] |
| Returns the number of the last simulated tick.
|
|
static int | LastSafeTick [get] |
| Returns the last safe simulated tick.
|
|
static TSVector | Gravity [get] |
| Returns the simulated gravity.
|
|
static List< TSPlayerInfo > | Players [get] |
| Returns the list of players connected.
|
|
static TSPlayerInfo | LocalPlayer [get] |
| Returns the local player.
|
|
static TrueSyncConfig | Config [get] |
| Returns the active TrueSyncConfig used by the TrueSyncManager.
|
|
Manages creation of player prefabs and lockstep execution.
Definition at line 11 of file TrueSyncManager.cs.
static void TrueSync.TrueSyncManager.RegisterIsReadyChecker |
( |
TrueSyncIsReady |
IsReadyChecker | ) |
|
|
static |
static void TrueSync.TrueSyncManager.RegisterITrueSyncBehaviour |
( |
ITrueSyncBehaviour |
trueSyncBehaviour | ) |
|
|
static |
static void TrueSync.TrueSyncManager.RemovePlayer |
( |
int |
playerId | ) |
|
|
static |
Removes objets related to a provided player.
- Parameters
-
playerId | Target player's id. |
Definition at line 585 of file TrueSyncManager.cs.
static void TrueSync.TrueSyncManager.SyncedDestroy |
( |
GameObject |
gameObject | ) |
|
|
static |
static GameObject TrueSync.TrueSyncManager.SyncedInstantiate |
( |
GameObject |
prefab | ) |
|
|
static |
Instantiate a new prefab in a deterministic way.
- Parameters
-
prefab | GameObject's prefab to instantiate. |
Definition at line 427 of file TrueSyncManager.cs.
static GameObject TrueSync.TrueSyncManager.SyncedInstantiate |
( |
GameObject |
prefab, |
|
|
TSVector |
position, |
|
|
TSQuaternion |
rotation |
|
) |
| |
|
static |
Instantiates a new prefab in a deterministic way.
- Parameters
-
prefab | GameObject's prefab to instantiate. |
position | Position to place the new GameObject. |
rotation | Rotation to set in the new GameObject. |
Definition at line 438 of file TrueSyncManager.cs.
static GameObject TrueSync.TrueSyncManager.SyncedInstantiate |
( |
GameObject |
prefab, |
|
|
TSVector2 |
position, |
|
|
TSQuaternion |
rotation |
|
) |
| |
|
static |
Instantiates a new prefab in a deterministic way.
- Parameters
-
prefab | GameObject's prefab to instantiate. |
position | Position to place the new GameObject. |
rotation | Rotation to set in the new GameObject. |
Definition at line 506 of file TrueSyncManager.cs.
static void TrueSync.TrueSyncManager.SyncedStartCoroutine |
( |
IEnumerator |
coroutine | ) |
|
|
static |
Starts a new coroutine.
- Parameters
-
coroutine | An IEnumerator that represents the coroutine. |
Definition at line 416 of file TrueSyncManager.cs.
The documentation for this class was generated from the following file: