Show / Hide Table of Contents

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 Source

ItemSize

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 Source

Icon

An icon that will be used to represent this stack type.

Declaration
public SpriteSpecifier Icon { get; }
Property Value
Type Description
Robust.Shared.Utility.SpriteSpecifier
| Improve this Doc View Source

ID

Declaration
public string ID { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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

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.

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾