Class BinSystem
This handles BinComponent
Inheritance
System.Object
BinSystem
Namespace: Content.Shared.Storage.EntitySystems
Assembly: Content.Shared.dll
Syntax
public sealed class BinSystem : EntitySystem
Fields
| Improve this Doc View SourceBinContainerId
Declaration
public const string BinContainerId = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
TryInsertIntoBin(EntityUid, EntityUid, BinComponent)
Inserts an entity at the top of the bin
Declaration
public bool TryInsertIntoBin(EntityUid uid, EntityUid toInsert, BinComponent component = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
EntityUid | toInsert | |
BinComponent | component |
Returns
Type | Description |
---|---|
System.Boolean |
TryRemoveFromBin(EntityUid, Nullable<EntityUid>, BinComponent)
Tries to remove an entity from the top of the bin.
Declaration
public bool TryRemoveFromBin(EntityUid uid, EntityUid? toRemove, BinComponent component = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.Nullable<EntityUid> | toRemove | |
BinComponent | component |
Returns
Type | Description |
---|---|
System.Boolean |