Class KaijuTicker
Base class for tickers to inherit from.
Namespace: KaijuSolutions.MultiplayerEngine.Synchronization
Syntax
public abstract class KaijuTicker : MonoBehaviour
Fields
OnTick
Callback for when the tick is incremented.
Declaration
public KaijuMultiplayerManager.EmptyEventHandler OnTick
Field Value
| Type | Description |
|---|---|
| KaijuMultiplayerManager.EmptyEventHandler |
Properties
Tick
The current tick of our local client on the server.
Declaration
public uint Tick { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
TicksPerSecond
The number of ticks per second to run at.
Declaration
public abstract uint TicksPerSecond { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Methods
Connected()
Handle spinning up the background thread to increment the tick.
Declaration
protected abstract void Connected()
Disconnected()
Handle shutting down the background thread to increment the tick.
Declaration
protected abstract void Disconnected()