using Robust.Shared.Prototypes; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Utility; using Robust.Shared.ViewVariables; namespace Content.Shared.Stacks { [Prototype("stack")] public class StackPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] public string ID { get; } = default!; /// /// Human-readable name for this stack type e.g. "Steel" /// /// This is a localization string ID. [DataField("name")] public string Name { get; } = string.Empty; /// /// An icon that will be used to represent this stack type. /// [DataField("icon")] public SpriteSpecifier? Icon { get; } = null; /// /// The entity id that will be spawned by default from this stack. /// [DataField("spawn", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Spawn { get; } = string.Empty; } }