CatStation/Content.Shared/GameTicking/Rules/Components/RoundstartStationVariationRuleComponent.cs

18 lines
684 B
C#

using Content.Shared.Storage;
namespace Content.Shared.GameTicking.Rules.Components;
/// <summary>
/// This handles starting various roundstart variation rules after a station has been loaded.
/// </summary>
[RegisterComponent]
public sealed partial class RoundstartStationVariationRuleComponent : Component
{
/// <summary>
/// The list of rules that will be started once the map is spawned.
/// Uses <see cref="EntitySpawnEntry"/> to support probabilities for various rules
/// without having to hardcode the probability directly in the rule's logic.
/// </summary>
[DataField(required: true)]
public List<EntitySpawnEntry> Rules = new();
}