using Content.Shared.GameTicking.Components; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.Trigger.Components.Effects; /// /// Adds and starts a new game rule on a trigger. /// The user is always logged alongside the game rule and this entity. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class AddGameRuleOnTriggerComponent : BaseXOnTriggerComponent { /// /// The game rule that will be added. Entity requires . /// [DataField(required: true), AutoNetworkedField] public EntProtoId GameRule; /// /// Whether to also start the game rule when adding it. /// You almost always want this to be true. /// [DataField, AutoNetworkedField] public bool StartRule = true; }