using Robust.Shared.Prototypes; namespace Content.Server.Spawners.Components; /// /// A spawner that rolls to spawn from of a list of entities on and . /// /// /// For non-trivial lists of prototypes, consider using and an instead. /// [RegisterComponent, EntityCategory("Spawner")] [Virtual] public partial class ConditionalSpawnerComponent : Component { /// /// A list of entities, one of which can spawn on a spawn roll when calling . /// [DataField] public List Prototypes { get; set; } = new(); /// /// A list of game rules - starting any of them causes a spawn roll. /// /// /// Currently unused, should be marked obsolete if not removed outright. /// [DataField] public List GameRules = new(); /// /// Chance of spawning an entity on each spawn roll. /// [DataField] public float Chance { get; set; } = 1.0f; }