Class DeviceNetworkConstants
A collection of constants to help with using device networks
Inheritance
System.Object
DeviceNetworkConstants
Namespace: Content.Server.DeviceNetwork
Assembly: Content.Server.dll
Syntax
public static class DeviceNetworkConstants : object
Fields
| Improve this Doc View SourceCmdSetState
The command for setting a devices state E.g. to turn a light on or off
Declaration
public const string CmdSetState = null
Field Value
Type | Description |
---|---|
System.String |
CmdUpdatedState
The command for a device that just updated its state E.g. suit sensors broadcasting owners vitals state
Declaration
public const string CmdUpdatedState = null
Field Value
Type | Description |
---|---|
System.String |
Command
The key for command names E.g. [DeviceNetworkConstants.Command] = "ping"
Declaration
public const string Command = null
Field Value
Type | Description |
---|---|
System.String |
LogicState
Used by logic gates to transmit the state of their ports
Declaration
public const string LogicState = null
Field Value
Type | Description |
---|---|
System.String |
StateEnabled
Used with the CmdSetState command to turn a device on or off
Declaration
public const string StateEnabled = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceDeviceNetIdToLocalizedName(Int32)
Either returns the localized name representation of the corresponding DeviceNetworkComponent.DeviceNetIdDefaults or converts the id to string
Declaration
public static string DeviceNetIdToLocalizedName(this int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id |
Returns
Type | Description |
---|---|
System.String |
FrequencyToString(UInt32)
Converts the unsigned int to string and inserts a number before the last digit
Declaration
public static string FrequencyToString(this uint frequency)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | frequency |
Returns
Type | Description |
---|---|
System.String |