/* * This file is sublicensed under MIT License * https://github.com/space-wizards/space-station-14/blob/master/LICENSE.TXT */ using Content.Shared._CP14.Cooking.Prototypes; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared._CP14.Cooking.Components; /// /// Food of the specified type can be transferred to this entity. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(fieldDeltas: true, raiseAfterAutoHandleState: true), Access(typeof(CP14SharedCookingSystem))] public sealed partial class CP14FoodHolderComponent : Component { /// /// What food is currently stored here? /// [DataField, AutoNetworkedField] public CP14FoodData? FoodData; [DataField] public bool CanAcceptFood = false; [DataField] public bool CanGiveFood = false; [DataField(required: true)] public ProtoId FoodType; [DataField] public string? SolutionId; [DataField] public int MaxDisplacementFillLevels = 8; [DataField] public string? DisplacementRsiPath; /// /// target layer, where new layers will be added. This allows you to control the order of generative layers and static layers. /// [DataField] public string TargetLayerMap = "cp14_foodLayers"; public HashSet RevealedLayers = new(); }