using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Guardian { /// /// Creates a GuardianComponent attached to the user's GuardianHost. /// [RegisterComponent] public sealed class GuardianCreatorComponent : Component { /// /// Counts as spent upon exhausting the injection /// /// /// We don't mark as deleted as examine depends on this. /// public bool Used = false; /// /// The prototype of the guardian entity which will be created /// [ViewVariables] [DataField("guardianProto", customTypeSerializer:typeof(PrototypeIdSerializer), required: true)] public string GuardianProto { get; set; } = default!; /// /// How long it takes to inject someone. /// [DataField("delay")] public float InjectionDelay = 5f; public bool Injecting = false; } }