Show / Hide Table of Contents

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 Source

CmdSetState

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Command

The key for command names E.g. [DeviceNetworkConstants.Command] = "ping"

Declaration
public const string Command = null
Field Value
Type Description
System.String
| Improve this Doc View Source

LogicState

Used by logic gates to transmit the state of their ports

Declaration
public const string LogicState = null
Field Value
Type Description
System.String
| Improve this Doc View Source

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 Source

DeviceNetIdToLocalizedName(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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾