Class AcousticDevice
Inheritance
System.Object
AcousticDevice
Assembly: cs.temp.dll.dll
Syntax
public abstract class AcousticDevice : MonoBehaviour, AcousticTransmiter, AcousticReceiver
Fields
Logger
Declaration
protected GameObjectLogger Logger
Field Value
Type |
Description |
GameObjectLogger |
|
Range
Transmitting range, in meters (m).
Declaration
Field Value
Type |
Description |
System.Single |
|
Properties
DeviceId
Declaration
public abstract int DeviceId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Location
Declaration
public Vector3 Location { get; }
Property Value
Protocol
Declaration
public abstract string Protocol { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetDeviceById<T>(UInt32)
Returns AcousticDevice object based on id.
Declaration
public T GetDeviceById<T>(uint id)
where T : AcousticDevice
Parameters
Type |
Name |
Description |
System.UInt32 |
id |
|
Returns
Type Parameters
Log<W>(String, W)
Declaration
protected void Log<W>(string topic, W data)
Parameters
Type |
Name |
Description |
System.String |
topic |
|
W |
data |
|
Type Parameters
OnReceive(AcousticMessage)
Declaration
public abstract void OnReceive(AcousticMessage message)
Parameters
Send(AcousticMessage, Action<AcousticMessage>, Action<AcousticMessage>)
Declaration
public abstract void Send(AcousticMessage message, Action<AcousticMessage> onAcknowledgeCallback = null, Action<AcousticMessage> onTimeoutCallback = null)
Parameters
Implements