Show / Hide Table of Contents

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 Source

InitialContents

The items that start in the bin. Sorted in order.

Declaration
public List<EntProtoId> InitialContents
Field Value
Type Description
List<Robust.Shared.Prototypes.EntProtoId>
| Improve this Doc View Source

ItemContainer

The containers that contain the items held in the bin

Declaration
public Container ItemContainer
Field Value
Type Description
Robust.Shared.Containers.Container
| Improve this Doc View Source

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

| Improve this Doc View Source

MaxItems

The maximum amount of items that can be stored in the bin.

Declaration
public int MaxItems
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Whitelist

A whitelist governing what items can be inserted into the bin.

Declaration
public EntityWhitelist Whitelist
Field Value
Type Description
EntityWhitelist
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾