Class SharedDeviceListSystem
Namespace: Content.Shared.DeviceNetwork.Systems
Assembly: Content.Shared.dll
Syntax
public abstract class SharedDeviceListSystem : EntitySystem
Methods
| Improve this Doc View SourceGetAllDevices(EntityUid, DeviceListComponent)
Declaration
public IEnumerable<EntityUid> GetAllDevices(EntityUid uid, DeviceListComponent component = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
DeviceListComponent | component |
Returns
Type | Description |
---|---|
IEnumerable<EntityUid> |
UpdateDeviceList(EntityUid, IEnumerable<EntityUid>, Boolean, DeviceListComponent)
Updates the device list stored on this entity.
Declaration
public DeviceListUpdateResult UpdateDeviceList(EntityUid uid, IEnumerable<EntityUid> devices, bool merge = false, DeviceListComponent deviceList = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | The entity to update. |
IEnumerable<EntityUid> | devices | The devices to store. |
System.Boolean | merge | Whether to merge or replace the devices stored. |
DeviceListComponent | deviceList | Device list component |
Returns
Type | Description |
---|---|
DeviceListUpdateResult |
UpdateShutdownSubscription(EntityUid, List<EntityUid>, List<EntityUid>)
Declaration
protected virtual void UpdateShutdownSubscription(EntityUid uid, List<EntityUid> devicesList, List<EntityUid> oldDevices)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
List<EntityUid> | devicesList | |
List<EntityUid> | oldDevices |