Files
tbd-station-14/Content.Shared/Stacks/StackPrototype.cs
2021-03-05 11:13:00 +01:00

29 lines
777 B
C#

#nullable enable
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Shared.Stacks
{
[Prototype("stack")]
public class StackPrototype : IPrototype
{
[ViewVariables]
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[field: DataField("name")]
public string Name { get; } = string.Empty;
[field: DataField("icon")]
public SpriteSpecifier? Icon { get; }
/// <summary>
/// The entity id that will be spawned by default from this stack.
/// </summary>
[field: DataField("spawn")]
public string? Spawn { get; }
}
}