1
0

FoodMetamorphableByAddingComponent.cs 594 B

1234567891011121314151617
  1. using Content.Shared.Nutrition.EntitySystems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Nutrition.Components;
  4. /// <summary>
  5. /// Attempts to metamorphose a modular food when a new ingredient is added.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, Access(typeof(SharedFoodSequenceSystem))]
  8. public sealed partial class FoodMetamorphableByAddingComponent : Component
  9. {
  10. /// <summary>
  11. /// if true, the metamorphosis will only be attempted when the sequence ends, not when each element is added.
  12. /// </summary>
  13. [DataField]
  14. public bool OnlyFinal = true;
  15. }