TeslasuitDocumentation
Plugins

Devices

Classes#

TsDeviceBehaviour#

TsDeviceBehaviour

An abstract component containing TsDeviceBehaviour.Device interface that can be used by other components.

Properties

Device — IDevice (read-only)

Returns device interface if available.

IsConnected — bool (read-only)

Returns device connected state.

Methods

UpdateState#

void UpdateState(IDevice device, bool isConnected);

Parameters

device: IDevice

isConnected: bool



TsGloveBehaviour#

TsGloveBehaviour

Component that provides glove device interface by given GloveIndex and TsDeviceSide.

Properties

TargetGloveIndex — GloveIndex (read-only)

Glove index used by component.

TargetGloveSide — TsDeviceSide (read-only)

Glove side used by component.

Glove — IGlove (read-only)

Returns glove device interface if available.

Fields

m_gloveIndex GloveIndex

m_gloveSide TsDeviceSide

Methods

Start#

void Start();

OnGloveConnected#

void OnGloveConnected(IGlove obj);

Parameters

obj: IGlove


OnGloveDisconnected#

void OnGloveDisconnected(IGlove obj);

Parameters

obj: IGlove



TsSuitBehaviour#

TsSuitBehaviour

Component that provides suit device interface by given SuitIndex.

Properties

TargetSuitIndex — SuitIndex (read/write)

Suit index used by component.

Suit — ISuit (read-only)

Returns suit device interface if available.

Fields

m_suitIndex SuitIndex

Methods

Start#

void Start();

OnSuitConnected#

void OnSuitConnected(ISuit obj);

Parameters

obj: ISuit


OnSuitDisconnected#

void OnSuitDisconnected(ISuit obj);

Parameters

obj: ISuit


ValidateSuitIndex#

void ValidateSuitIndex();