Show / Hide Table of Contents

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 Source

DropOnDeconstruct

Whether or not to drop contained materials when deconstructed.

Declaration
public bool DropOnDeconstruct
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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.Boolean
| Improve this Doc View Source

InsertingSound

The sound that plays when inserting an item into the storage

Declaration
public SoundSpecifier InsertingSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

InsertionTime

How long the inserting animation will play

Declaration
public TimeSpan InsertionTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

InsertOnInteract

Whether or not interacting with the materialstorage inserts the material in hand.

Declaration
public bool InsertOnInteract
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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.Nullable<List<Robust.Shared.Prototypes.ProtoId<MaterialPrototype>>>
| Improve this Doc View Source

StorageLimit

How much material the storage can store in total.

Declaration
public int? StorageLimit
Field Value
Type Description
System.Nullable<System.Int32>
| Improve this Doc View Source

Whitelist

Whitelist for specifying the kind of items that can be insert into this entity.

Declaration
public EntityWhitelist Whitelist
Field Value
Type Description
EntityWhitelist

Properties

| Improve this Doc View Source

Storage

Declaration
public Dictionary<ProtoId<MaterialPrototype>, int> Storage { get; set; }
Property Value
Type Description
Dictionary<Robust.Shared.Prototypes.ProtoId<MaterialPrototype>, System.Int32>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾