Files
tbd-station-14/Content.Shared/Stacks/StackPrototype.cs
2021-05-26 10:20:57 +02:00

29 lines
788 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]
[DataField("id", required: true)]
public string ID { get; } = default!;
[DataField("name")]
public string Name { get; } = string.Empty;
[DataField("icon")]
public SpriteSpecifier? Icon { get; } = null;
/// <summary>
/// The entity id that will be spawned by default from this stack.
/// </summary>
[DataField("spawn", required: true)]
public string Spawn { get; } = string.Empty;
}
}