Struct ConnectedEntity
public struct ConnectedEntity : ICoherenceComponentData
- Implements
Fields
order
public const int order = -1
Field Value
pos
public Vector3 pos
Field Value
- Vector3
posSimulationFrame
public AbsoluteSimulationFrame posSimulationFrame
Field Value
rot
public Quaternion rot
Field Value
rotSimulationFrame
public AbsoluteSimulationFrame rotSimulationFrame
Field Value
scale
public Vector3 scale
Field Value
- Vector3
scaleSimulationFrame
public AbsoluteSimulationFrame scaleSimulationFrame
Field Value
value
public Entity value
Field Value
valueSimulationFrame
public AbsoluteSimulationFrame valueSimulationFrame
Field Value
Properties
FieldsMask
public uint FieldsMask { readonly get; set; }
Property Value
StoppedMask
public uint StoppedMask { readonly get; set; }
Property Value
posMask
public static uint posMask { get; }
Property Value
rotMask
public static uint rotMask { get; }
Property Value
scaleMask
public static uint scaleMask { get; }
Property Value
valueMask
public static uint valueMask { get; }
Property Value
Methods
Clone()
public ICoherenceComponentData Clone()
Returns
Deserialize(AbsoluteSimulationFrame, InProtocolBitStream)
public static ConnectedEntity Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream)
Parameters
referenceSimulationFrame
AbsoluteSimulationFramebitStream
InProtocolBitStream
Returns
DiffWith(ICoherenceComponentData)
public uint DiffWith(ICoherenceComponentData data)
Parameters
Returns
FromInterop(IntPtr, int, InteropAbsoluteSimulationFrame*, int)
public static ConnectedEntity FromInterop(IntPtr data, int dataSize, InteropAbsoluteSimulationFrame* simFrames, int simFramesCount)
Parameters
data
IntPtrdataSize
intsimFrames
InteropAbsoluteSimulationFrame*simFramesCount
int
Returns
GetComponentOrder()
public int GetComponentOrder()
Returns
GetComponentType()
public uint GetComponentType()
Returns
GetEntityRefs()
public HashSet<Entity> GetEntityRefs()
Returns
GetFieldCount()
public int GetFieldCount()
Returns
GetMinSimulationFrame()
public AbsoluteSimulationFrame? GetMinSimulationFrame()
Returns
GetSimulationFrames()
public long[] GetSimulationFrames()
Returns
- long[]
HasFields()
public bool HasFields()
Returns
HasRefFields()
public bool HasRefFields()
Returns
InitialFieldsMask()
public uint InitialFieldsMask()
Returns
IsSendOrdered()
public bool IsSendOrdered()
Returns
MapToAbsolute(IEntityMapper)
public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper)
Parameters
mapper
IEntityMapper
Returns
MapToRelative(IEntityMapper)
public IEntityMapper.Error MapToRelative(IEntityMapper mapper)
Parameters
mapper
IEntityMapper
Returns
MergeWith(ICoherenceComponentData)
public ICoherenceComponentData MergeWith(ICoherenceComponentData data)
Parameters
Returns
PriorityLevel()
public int PriorityLevel()
Returns
ReplaceReferences(Entity, Entity)
Replaces all references to 'fromEntity' with 'toEntity' in this component.
public uint ReplaceReferences(Entity fromEntity, Entity toEntity)
Parameters
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
ConnectedEntityisRefSimFrameValid
boolreferenceSimulationFrame
AbsoluteSimulationFramebitStream
IOutProtocolBitStreamlogger
Logger
Returns
ToString()
public override string ToString()