Class BinComponent
This is used for things like paper bins, in which you can only take off of the top of the bin.
Inheritance
System.Object
BinComponent
Namespace: Content.Shared.Storage.Components
Assembly: Content.Shared.dll
Syntax
public sealed class BinComponent : Component
Fields
| Improve this Doc View SourceInitialContents
The items that start in the bin. Sorted in order.
Declaration
public List<EntProtoId> InitialContents
Field Value
Type | Description |
---|---|
List<Robust.Shared.Prototypes.EntProtoId> |
ItemContainer
The containers that contain the items held in the bin
Declaration
public Container ItemContainer
Field Value
Type | Description |
---|---|
Robust.Shared.Containers.Container |
Items
A list representing the order in which all the entities are stored in the bin.
Declaration
public List<EntityUid> Items
Field Value
Type | Description |
---|---|
List<EntityUid> |
Remarks
The only reason this isn't a stack is so that i can handle entities being deleted and removed out of order by other systems
MaxItems
The maximum amount of items that can be stored in the bin.
Declaration
public int MaxItems
Field Value
Type | Description |
---|---|
System.Int32 |
Whitelist
A whitelist governing what items can be inserted into the bin.
Declaration
public EntityWhitelist Whitelist
Field Value
Type | Description |
---|---|
EntityWhitelist |