using Robust.Shared.Prototypes; namespace Content.Server.Power.Components; /// /// Spawns a entity when the battery reaches a certain percentage or amount of power. /// It also consumes that much power when spawning the entity. /// [RegisterComponent] public sealed partial class SpawnOnBatteryLevelComponent : Component { /// /// Entity prototype to spawn. /// [DataField(required: true)] public EntProtoId Prototype = string.Empty; /// /// Amount of power in the battery (in joules) to spawn entity /// [DataField] public float Charge; }