using Content.Shared.Nutrition.EntitySystems;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
namespace Content.Shared.Nutrition.Components;
///
/// Tndicates that this entity can be inserted into FoodSequence, which will transfer all reagents to the target.
///
[RegisterComponent, Access(typeof(SharedFoodSequenceSystem))]
public sealed partial class FoodSequenceElementComponent : Component
{
///
/// the same object can be used in different sequences, and it will have a different sprite in different sequences.
///
[DataField(required: true)]
public Dictionary Entries = new();
///
/// which solution we will add to the main dish
///
[DataField]
public string Solution = "food";
}
[DataRecord, Serializable, NetSerializable]
public partial record struct FoodSequenceElementEntry()
{
///
/// A localized name piece to build into the item name generator.
///
public LocId? Name { get; set; } = null;
///
/// state used to generate the appearance of the added layer
///
public SpriteSpecifier? Sprite { get; set; } = null;
///
/// If the layer is the final one, it can be added over the limit, but no other layers can be added after it.
///
public bool Final { get; set; } = false;
}