Class MaterialStorageComponent
Inheritance
System.Object
MaterialStorageComponent
Namespace: Content.Shared.Materials
Assembly: Content.Shared.dll
Syntax
public sealed class MaterialStorageComponent : Component
Fields
| Improve this Doc View SourceDropOnDeconstruct
Whether or not to drop contained materials when deconstructed.
Declaration
public bool DropOnDeconstruct
Field Value
Type | Description |
---|---|
System. |
IgnoreColor
Whether or not the visualization for the insertion animation should ignore the color of the material being inserted.
Declaration
public bool IgnoreColor
Field Value
Type | Description |
---|---|
System. |
InsertingSound
The sound that plays when inserting an item into the storage
Declaration
public SoundSpecifier InsertingSound
Field Value
Type | Description |
---|---|
Robust. |
InsertionTime
How long the inserting animation will play
Declaration
public TimeSpan InsertionTime
Field Value
Type | Description |
---|---|
Time |
InsertOnInteract
Whether or not interacting with the materialstorage inserts the material in hand.
Declaration
public bool InsertOnInteract
Field Value
Type | Description |
---|---|
System. |
MaterialWhiteList
Whitelist generated on runtime for what specific materials can be inserted into this entity.
Declaration
public List<ProtoId<MaterialPrototype>>? MaterialWhiteList
Field Value
Type | Description |
---|---|
System. |
StorageLimit
How much material the storage can store in total.
Declaration
public int? StorageLimit
Field Value
Type | Description |
---|---|
System. |
Whitelist
Whitelist for specifying the kind of items that can be insert into this entity.
Declaration
public EntityWhitelist Whitelist
Field Value
Type | Description |
---|---|
Entity |
Properties
| Improve this Doc View SourceStorage
Declaration
public Dictionary<ProtoId<MaterialPrototype>, int> Storage { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Robust. |