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.Conditions;
/// <summary>
/// Adds an alt verb that can be used to toggle a trigger.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ToggleTriggerConditionComponent : BaseTriggerConditionComponent
{
/// <summary>
/// Is the component currently enabled?
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled = true;
/// <summary>
/// The text of the toggle verb.
/// </summary>
[DataField, AutoNetworkedField]
public LocId ToggleVerb = "toggle-trigger-condition-default-verb";
/// <summary>
/// The popup to show when toggled on.
/// </summary>
[DataField, AutoNetworkedField]
public LocId ToggleOn = "toggle-trigger-condition-default-on";
/// <summary>
/// The popup to show when toggled off.
/// </summary>
[DataField, AutoNetworkedField]
public LocId ToggleOff = "toggle-trigger-condition-default-off";
}