Table of Contents

Struct CompressedInput

Namespace
Coherence.Generated
Assembly
Coherence.Common.Tests.dll
public struct CompressedInput : IEntityInput, IEntityMessage
Implements

Constructors

CompressedInput(Entity, long, int, float, Vector2, string, bool)

public CompressedInput(Entity entity, long frame, int intField, float floatField, Vector2 axisField, string stringField, bool isRemoteInput)

Parameters

entity Entity
frame long
intField int
floatField float
axisField Vector2
stringField string
isRemoteInput bool

Fields

axisField

public Vector2 axisField

Field Value

Vector2

floatField

public float floatField

Field Value

float

intField

public int intField

Field Value

int

stringField

public string stringField

Field Value

string

Properties

Entity

public Entity Entity { readonly get; set; }

Property Value

Entity

Frame

public long Frame { readonly get; set; }

Property Value

long

Routing

public MessageTarget Routing { readonly get; set; }

Property Value

MessageTarget

Sender

public uint Sender { readonly get; set; }

Property Value

uint

Methods

Clone()

public IEntityMessage Clone()

Returns

IEntityMessage

Deserialize(IInProtocolBitStream, Entity, long)

public static CompressedInput Deserialize(IInProtocolBitStream bitStream, Entity entity, long frame)

Parameters

bitStream IInProtocolBitStream
entity Entity
frame long

Returns

CompressedInput

Equals(CompressedInput)

public bool Equals(CompressedInput other)

Parameters

other CompressedInput

Returns

bool

FromInterop(IntPtr, int)

public static CompressedInput FromInterop(IntPtr data, int dataSize)

Parameters

data IntPtr
dataSize int

Returns

CompressedInput

GetComponentType()

public uint GetComponentType()

Returns

uint

GetEntityRefs()

public HashSet<Entity> GetEntityRefs()

Returns

HashSet<Entity>

MapToAbsolute(IEntityMapper, Logger)

public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Logger logger)

Parameters

mapper IEntityMapper
logger Logger

Returns

IEntityMapper.Error

MapToRelative(IEntityMapper, Logger)

public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Logger logger)

Parameters

mapper IEntityMapper
logger Logger

Returns

IEntityMapper.Error

NullEntityRefs(Entity)

public void NullEntityRefs(Entity entity)

Parameters

entity Entity

Serialize(CompressedInput, IOutProtocolBitStream)

public static void Serialize(CompressedInput inputData, IOutProtocolBitStream bitStream)

Parameters

inputData CompressedInput
bitStream IOutProtocolBitStream

ToString()

public override string ToString()

Returns

string