FoodSequenceElementComponent.cs 890 B

12345678910111213141516171819202122232425
  1. using Content.Shared.Nutrition.EntitySystems;
  2. using Content.Shared.Nutrition.Prototypes;
  3. using Content.Shared.Tag;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Nutrition.Components;
  6. /// <summary>
  7. /// Indicates that this entity can be inserted into FoodSequence, which will transfer all reagents to the target.
  8. /// </summary>
  9. [RegisterComponent, Access(typeof(SharedFoodSequenceSystem))]
  10. public sealed partial class FoodSequenceElementComponent : Component
  11. {
  12. /// <summary>
  13. /// The same object can be used in different sequences, and it will have a different data in then.
  14. /// </summary>
  15. [DataField(required: true)]
  16. public Dictionary<ProtoId<TagPrototype>, ProtoId<FoodSequenceElementPrototype>> Entries = new();
  17. /// <summary>
  18. /// Which solution we will add to the main dish
  19. /// </summary>
  20. [DataField]
  21. public string Solution = "food";
  22. }