Class ClientUpdate
Contains data for ClientUpdate events. Every ClientUpdate belongs to network queue with Eco.Shared.Networking.ClientUpdate.networkChannel. Queue index defines associated NetworkEvent as ClientUpdateIndex (i.e. ClientUpdateGeneral and ClientUpdateChunks). It has four data arrays for Created objects, Updated objects, Destroyed objects and ViewUpdates. They should be filled and then flushed with Send(INetClient) method. Only non-empty arrays sent. If all arrays are empty then Send(INetClient) call will be ignored unless ForceSend is set.
Inheritance
System.Object
ClientUpdate
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public class ClientUpdate : Object
Constructors
ClientUpdate(Byte)
Declaration
public ClientUpdate(byte netowrkChannel)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | netowrkChannel |
Fields
Created
Declaration
public BSONArray Created
Field Value
Type | Description |
---|---|
BSONArray |
Destroyed
Declaration
public BSONArray Destroyed
Field Value
Type | Description |
---|---|
BSONArray |
ForceSend
Declaration
public bool ForceSend
Field Value
Type | Description |
---|---|
System.Boolean |
ForceSendThrottle
Declaration
public PeriodicUpdate ForceSendThrottle
Field Value
Type | Description |
---|---|
PeriodicUpdate |
Updated
Declaration
public BSONArray Updated
Field Value
Type | Description |
---|---|
BSONArray |
ViewUpdates
Declaration
public BSONArray ViewUpdates
Field Value
Type | Description |
---|---|
BSONArray |
Methods
Send(INetClient)
Declaration
public void Send(INetClient client)
Parameters
Type | Name | Description |
---|---|---|
INetClient | client |