Table of Contents

Struct OutgoingEntityUpdate

Namespace
Coherence.Entities
Assembly
Coherence.Entities.dll
public struct OutgoingEntityUpdate

Fields

Components

public DeltaComponents Components

Field Value

DeltaComponents

Operation

public EntityOperation Operation

Field Value

EntityOperation

Priority

public long Priority

Field Value

long

Properties

HasExistenceOperation

public bool HasExistenceOperation { get; }

Property Value

bool

IsCreate

public bool IsCreate { get; }

Property Value

bool

IsDestroy

public bool IsDestroy { get; }

Property Value

bool

IsUpdate

public bool IsUpdate { get; }

Property Value

bool

Methods

Add(OutgoingEntityUpdate, IComponentInfo)

Add updated components to own collection. If an update exists in both, the update will overwrite the owned changes. If current or newer entity update is a Destroy operator, return a Destroy.

public void Add(OutgoingEntityUpdate update, IComponentInfo componentInfo)

Parameters

update OutgoingEntityUpdate

A newer entity update

componentInfo IComponentInfo

Clone()

public OutgoingEntityUpdate Clone()

Returns

OutgoingEntityUpdate

HasUnAckedOrderedComponents()

public bool HasUnAckedOrderedComponents()

Returns

bool

New()

public static OutgoingEntityUpdate New()

Returns

OutgoingEntityUpdate

Return()

public void Return()

Subtract(OutgoingEntityUpdate)

Remove all own updated fields that are present in update This since we don't need to resend fields that have been changed afterwards. If current or newer entity update is a Destroy operator, return a Destroy.

public void Subtract(OutgoingEntityUpdate update)

Parameters

update OutgoingEntityUpdate

A newer entity update

ToString()

public string ToString()

Returns

string