using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Sericulture; [RegisterComponent] public sealed partial class SericultureComponent : Component { [DataField("popupText")] public string PopupText = "sericulture-failure-hunger"; /// /// What will be produced at the end of the action. /// [DataField("entityProduced", required: true)] public string EntityProduced = ""; [DataField("action", customTypeSerializer: typeof(PrototypeIdSerializer))] public string Action = "ActionSericulture"; [DataField("actionEntity")] public EntityUid? ActionEntity; /// /// How long will it take to make. /// [DataField("productionLength", required: true), ViewVariables(VVAccess.ReadWrite)] public float ProductionLength = 0; [DataField("hungerCost"), ViewVariables(VVAccess.ReadWrite)] public float HungerCost = 0f; }