FoodSequenceElementPrototype.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Content.Shared.Tag;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Utility;
  4. using System.Numerics;
  5. namespace Content.Shared.Nutrition.Prototypes;
  6. /// <summary>
  7. /// Unique data storage block for different FoodSequence layers
  8. /// </summary>
  9. [Prototype]
  10. public sealed partial class FoodSequenceElementPrototype : IPrototype
  11. {
  12. [IdDataField] public string ID { get; private set; } = default!;
  13. /// <summary>
  14. /// sprite options. A random one will be selected and used to display the layer.
  15. /// </summary>
  16. [DataField]
  17. public List<SpriteSpecifier> Sprites { get; private set; } = new();
  18. /// <summary>
  19. /// Relative size of the sprite displayed in the food sequence.
  20. /// </summary>
  21. [DataField]
  22. public Vector2 Scale { get; private set; } = Vector2.One;
  23. /// <summary>
  24. /// A localized name piece to build into the item name generator.
  25. /// </summary>
  26. [DataField]
  27. public LocId? Name { get; private set; }
  28. /// <summary>
  29. /// If the layer is the final one, it can be added over the limit, but no other layers can be added after it.
  30. /// </summary>
  31. [DataField]
  32. public bool Final { get; private set; }
  33. /// <summary>
  34. /// Tag list of this layer. Used for recipes for food metamorphosis.
  35. /// </summary>
  36. [DataField]
  37. public List<ProtoId<TagPrototype>> Tags { get; set; } = new();
  38. }