using Content.Server.Nutrition.EntitySystems; using Robust.Shared.Audio; using Robust.Shared.Prototypes; namespace Content.Server.Nutrition.Components; [RegisterComponent, Access(typeof(SliceableFoodSystem))] public sealed partial class SliceableFoodComponent : Component { /// /// Prototype to spawn after slicing. /// If null then it can't be sliced. /// [DataField, ViewVariables(VVAccess.ReadWrite)] public EntProtoId? Slice; [DataField, ViewVariables(VVAccess.ReadWrite)] public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Items/Culinary/chop.ogg"); /// /// Number of slices the food starts with. /// [DataField("count"), ViewVariables(VVAccess.ReadWrite)] public ushort TotalCount = 5; /// /// Number of slices left. /// [ViewVariables(VVAccess.ReadWrite)] public ushort Count; }