Skip to main content

MLAPI.NetworkTickSystem

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Implements#

INetworkUpdateSystem

System.IDisposable

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public class NetworkTickSystem : INetworkUpdateSystem, IDisposable

Constructors#

NetworkTickSystem(Single)#

Constructor Defaults to k_DefaultTickIntervalSec if no tick duration is specified

Declaration#

public NetworkTickSystem(float tickIntervalSec = 0.05F)

Parameters#

TypeNameDescription
System.SingletickIntervalSecDuration of a network tick

Fields#

NoTick#

Declaration#

public const ushort NoTick = 65535

Field Value#

TypeDescription
System.UInt16

TickPeriod#

Declaration#

public const ushort TickPeriod = 65534

Field Value#

TypeDescription
System.UInt16

Methods#

Dispose()#

Declaration#

public void Dispose()

GetNetworkTime()#

GetNetworkTime Network time is calculated from m_NetworkTickCount and m_TickIntervalSec (tick frequency)

Declaration#

public float GetNetworkTime()

Returns#

TypeDescription
System.SingleNetwork Time

GetTick()#

GetTick Gets the current network tick (non-fractional, wrapping around)

Declaration#

public ushort GetTick()

Returns#

TypeDescription
System.UInt16

NetworkUpdate(NetworkUpdateStage)#

Declaration#

public void NetworkUpdate(NetworkUpdateStage updateStage)

Parameters#

TypeNameDescription
NetworkUpdateStageupdateStage

Implements#

INetworkUpdateSystem

System.IDisposable

Extension Methods#

NetworkUpdateLoop.RegisterAllNetworkUpdates(INetworkUpdateSystem)

NetworkUpdateLoop.RegisterNetworkUpdate(INetworkUpdateSystem, NetworkUpdateStage)

NetworkUpdateLoop.UnregisterAllNetworkUpdates(INetworkUpdateSystem)

NetworkUpdateLoop.UnregisterNetworkUpdate(INetworkUpdateSystem, NetworkUpdateStage)