Class DeviceListSystem
Namespace: Content.Server.DeviceNetwork.Systems
Assembly: Content.Server.dll
Syntax
public sealed class DeviceListSystem : SharedDeviceListSystem
Methods
| Improve this Doc View SourceExistsInDeviceList(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 |
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.
Initialize()
Declaration
public override void Initialize()
OnInit(EntityUid, DeviceListComponent, ComponentInit)
Declaration
public void OnInit(EntityUid uid, DeviceListComponent component, ComponentInit args)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
DeviceListComponent | component | |
ComponentInit | args |
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 |