using Robust.Shared.Prototypes; namespace Content.Server.Spawners.Components { [RegisterComponent, EntityCategory("Spawner")] [Virtual] public partial class ConditionalSpawnerComponent : Component { /// /// A list of entities, one of which can spawn in after calling Spawn() /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public List Prototypes { get; set; } = new(); /// /// A list of game rules. /// If at least one of them was launched in the game, /// an attempt will occur to spawn one of the objects in the Prototypes list /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public List GameRules = new(); /// /// Chance of spawning an entity /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public float Chance { get; set; } = 1.0f; } }