Trigger Refactor (#39034)

This commit is contained in:
slarticodefast
2025-08-03 21:20:37 +02:00
committed by GitHub
parent 777e89ab3e
commit 2c40a950f7
256 changed files with 3987 additions and 2892 deletions

View File

@@ -0,0 +1,34 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Changes the alert level of the station when triggered.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class AlertLevelChangeOnTriggerComponent : BaseXOnTriggerComponent
{
///<summary>
/// The alert level to change to when triggered.
///</summary>
[DataField, AutoNetworkedField]
public string Level = "blue";
/// <summary>
/// Whether to play the sound when the alert level changes.
/// </summary>
[DataField, AutoNetworkedField]
public bool PlaySound = true;
/// <summary>
/// Whether to say the announcement when the alert level changes.
/// </summary>
[DataField, AutoNetworkedField]
public bool Announce = true;
/// <summary>
/// Force the alert change. This applies if the alert level is not selectable or not.
/// </summary>
[DataField, AutoNetworkedField]
public bool Force = false;
}