Class StackPrototype
Inheritance
System.Object
StackPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Namespace: Content.Shared.Stacks
Assembly: Content.Shared.dll
Syntax
public sealed class StackPrototype : object, IPrototype
Fields
| Improve this Doc View SourceItemSize
The size of an individual unit of this stack.
Declaration
public int? ItemSize
Field Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Properties
| Improve this Doc View SourceIcon
An icon that will be used to represent this stack type.
Declaration
public SpriteSpecifier Icon { get; }
Property Value
Type | Description |
---|---|
Robust.Shared.Utility.SpriteSpecifier |
ID
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
MaxCount
The maximum amount of things that can be in a stack. Can be overriden on StackComponent if null, simply has unlimited max count.
Declaration
public int? MaxCount { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Name
Human-readable name for this stack type e.g. "Steel"
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is a localization string ID.
Spawn
The entity id that will be spawned by default from this stack.
Declaration
public string Spawn { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
Robust.Shared.Prototypes.IPrototype