TsRoot & subsystems
Interfaces#
IDeviceSubsystem#
TsSDK::IDeviceSubsystem
Base device subsystem interface.
Properties
Device — IDevice (read-only)
Device used by subsystem.
Classes#
TsRoot#
TsSDK::TsRoot
The root class that provides all Teslasuit devices control responsible logic.
There are device manager classes separated by target device management: GloveManager for Glove devices management SuitManager for Suit devices management AssetManager for Assets management Only one instance of a TsRoot should be used during the program lifecycle.
Properties
GloveManager — IGloveManager (read-only)
Provides access to Glove device objects and its state.
SuitManager — ISuitManager (read-only)
Provides access to Suit device objects and its state.
DeviceManager — IDeviceManager (read-only)
Provides access to all device objects and its state.
AssetManager — IAssetManager (read/write)
Provides functionality to load assets from a file on the disk or from a binary array of data, get information about a loaded asset and to unload an asset from memory.
Fields
s_instance TsRoot
m_libraryHandle IntPtr
m_assetManager AssetManager
m_deviceManager DeviceManager
m_gloveManager GloveManager
m_suitManager SuitManager
m_hapticPlayableManager HapticPlayableManager
m_resourcesReleased bool
Methods
TsRoot#
TsRoot();
Creates teslasuit root module instance and initializes device manager.
Dispose#
void Dispose();
InitSDKInstallation#
void InitSDKInstallation();
Setting up an installed Teslasuit SDK environment.
CheckSDKInstalled#
bool CheckSDKInstalled(string installedPath);
Parameters
installedPath: string
Returns: bool
LoadLibrary#
void LoadLibrary();
IsLibraryLoaded#
bool IsLibraryLoaded();
Returns: bool
UnloadLibrary#
void UnloadLibrary();
ReleaseUnmanagedResources#
void ReleaseUnmanagedResources();
~TsRoot#
~TsRoot();
