Show / Hide Table of Contents

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

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾