Table of Contents

Struct ConnectedEntity

Namespace
Coherence.Generated
Assembly
Coherence.Common.Tests.dll
public struct ConnectedEntity : ICoherenceComponentData
Implements

Fields

order

public const int order = -1

Field Value

int

pos

public Vector3 pos

Field Value

Vector3

posSimulationFrame

public AbsoluteSimulationFrame posSimulationFrame

Field Value

AbsoluteSimulationFrame

rot

public Quaternion rot

Field Value

Quaternion

rotSimulationFrame

public AbsoluteSimulationFrame rotSimulationFrame

Field Value

AbsoluteSimulationFrame

scale

public Vector3 scale

Field Value

Vector3

scaleSimulationFrame

public AbsoluteSimulationFrame scaleSimulationFrame

Field Value

AbsoluteSimulationFrame

value

public Entity value

Field Value

Entity

valueSimulationFrame

public AbsoluteSimulationFrame valueSimulationFrame

Field Value

AbsoluteSimulationFrame

Properties

FieldsMask

public uint FieldsMask { readonly get; set; }

Property Value

uint

StoppedMask

public uint StoppedMask { readonly get; set; }

Property Value

uint

posMask

public static uint posMask { get; }

Property Value

uint

rotMask

public static uint rotMask { get; }

Property Value

uint

scaleMask

public static uint scaleMask { get; }

Property Value

uint

valueMask

public static uint valueMask { get; }

Property Value

uint

Methods

Clone()

public ICoherenceComponentData Clone()

Returns

ICoherenceComponentData

Deserialize(AbsoluteSimulationFrame, InProtocolBitStream)

public static ConnectedEntity Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream)

Parameters

referenceSimulationFrame AbsoluteSimulationFrame
bitStream InProtocolBitStream

Returns

ConnectedEntity

DiffWith(ICoherenceComponentData)

public uint DiffWith(ICoherenceComponentData data)

Parameters

data ICoherenceComponentData

Returns

uint

FromInterop(IntPtr, int, InteropAbsoluteSimulationFrame*, int)

public static ConnectedEntity FromInterop(IntPtr data, int dataSize, InteropAbsoluteSimulationFrame* simFrames, int simFramesCount)

Parameters

data IntPtr
dataSize int
simFrames InteropAbsoluteSimulationFrame*
simFramesCount int

Returns

ConnectedEntity

GetComponentOrder()

public int GetComponentOrder()

Returns

int

GetComponentType()

public uint GetComponentType()

Returns

uint

GetEntityRefs()

public HashSet<Entity> GetEntityRefs()

Returns

HashSet<Entity>

GetFieldCount()

public int GetFieldCount()

Returns

int

GetMinSimulationFrame()

public AbsoluteSimulationFrame? GetMinSimulationFrame()

Returns

AbsoluteSimulationFrame?

GetSimulationFrames()

public long[] GetSimulationFrames()

Returns

long[]

HasFields()

public bool HasFields()

Returns

bool

HasRefFields()

public bool HasRefFields()

Returns

bool

InitialFieldsMask()

public uint InitialFieldsMask()

Returns

uint

IsSendOrdered()

public bool IsSendOrdered()

Returns

bool

MapToAbsolute(IEntityMapper)

public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper)

Parameters

mapper IEntityMapper

Returns

IEntityMapper.Error

MapToRelative(IEntityMapper)

public IEntityMapper.Error MapToRelative(IEntityMapper mapper)

Parameters

mapper IEntityMapper

Returns

IEntityMapper.Error

MergeWith(ICoherenceComponentData)

public ICoherenceComponentData MergeWith(ICoherenceComponentData data)

Parameters

data ICoherenceComponentData

Returns

ICoherenceComponentData

PriorityLevel()

public int PriorityLevel()

Returns

int

ReplaceReferences(Entity, Entity)

Replaces all references to 'fromEntity' with 'toEntity' in this component.

public uint ReplaceReferences(Entity fromEntity, Entity toEntity)

Parameters

fromEntity Entity
toEntity Entity

Returns

uint

The field mask of references that were changed.

Serialize(ConnectedEntity, bool, AbsoluteSimulationFrame, IOutProtocolBitStream, Logger)

public static uint Serialize(ConnectedEntity data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger)

Parameters

data ConnectedEntity
isRefSimFrameValid bool
referenceSimulationFrame AbsoluteSimulationFrame
bitStream IOutProtocolBitStream
logger Logger

Returns

uint

ToString()

public override string ToString()

Returns

string