Show / Hide Table of Contents

Class DeviceListSystem

Inheritance
System.Object
SharedDeviceListSystem
DeviceListSystem
Namespace: Content.Server.DeviceNetwork.Systems
Assembly: Content.Server.dll
Syntax
public sealed class DeviceListSystem : SharedDeviceListSystem

Methods

| Improve this Doc View Source

ExistsInDeviceList(EntityUid, String, DeviceListComponent)

Checks if the given address is present in a device list

Declaration
public bool ExistsInDeviceList(EntityUid uid, string address, DeviceListComponent deviceList = null)
Parameters
Type Name Description
EntityUid uid

The entity uid that has the device list that should be checked for the address

System.String address

The address to check for

DeviceListComponent deviceList

The device list component

Returns
Type Description
System.Boolean

True if the address is present. False if not

| Improve this Doc View Source

GetDeviceList(EntityUid, DeviceListComponent)

Gets the given device list as a dictionary

Declaration
public Dictionary<string, EntityUid> GetDeviceList(EntityUid uid, DeviceListComponent deviceList = null)
Parameters
Type Name Description
EntityUid uid
DeviceListComponent deviceList
Returns
Type Description
Dictionary<System.String, EntityUid>
Remarks

If any entity in the device list is pre-map init, it will show the entity UID of the device instead.

| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

OnInit(EntityUid, DeviceListComponent, ComponentInit)

Declaration
public void OnInit(EntityUid uid, DeviceListComponent component, ComponentInit args)
Parameters
Type Name Description
EntityUid uid
DeviceListComponent component
ComponentInit args
| Improve this Doc View Source

UpdateShutdownSubscription(EntityUid, List<EntityUid>, List<EntityUid>)

Declaration
protected override void UpdateShutdownSubscription(EntityUid uid, List<EntityUid> newDevices, List<EntityUid> oldDevices)
Parameters
Type Name Description
EntityUid uid
List<EntityUid> newDevices
List<EntityUid> oldDevices
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾