Table of Contents

Interface IComponentInteropHandler

Namespace
Coherence.Core
Assembly
Coherence.Core.Native.dll
public interface IComponentInteropHandler

Methods

GetCommand(uint, IntPtr, int)

IEntityCommand GetCommand(uint type, IntPtr data, int dataSize)

Parameters

type uint
data IntPtr
dataSize int

Returns

IEntityCommand

GetComponent(uint, IntPtr, int, InteropAbsoluteSimulationFrame*, int)

ICoherenceComponentData GetComponent(uint type, IntPtr data, int dataSize, InteropAbsoluteSimulationFrame* simFrames, int simFramesCount)

Parameters

type uint
data IntPtr
dataSize int
simFrames InteropAbsoluteSimulationFrame*
simFramesCount int

Returns

ICoherenceComponentData

GetInput(uint, IntPtr, int)

IEntityInput GetInput(uint type, IntPtr data, int dataSize)

Parameters

type uint
data IntPtr
dataSize int

Returns

IEntityInput

SendCommand(CoherenceCore, InteropEntity, MessageTarget, IEntityCommand)

bool SendCommand(CoherenceCore core, InteropEntity entity, MessageTarget target, IEntityCommand command)

Parameters

core CoherenceCore
entity InteropEntity
target MessageTarget
command IEntityCommand

Returns

bool

SendInput(CoherenceCore, InteropEntity, long, IEntityInput)

void SendInput(CoherenceCore core, InteropEntity entity, long frame, IEntityInput input)

Parameters

core CoherenceCore
entity InteropEntity
frame long
input IEntityInput

UpdateComponent(CoherenceCore, InteropEntity, ICoherenceComponentData)

void UpdateComponent(CoherenceCore core, InteropEntity entity, ICoherenceComponentData component)

Parameters

core CoherenceCore
entity InteropEntity
component ICoherenceComponentData