Trigger Refactor (#39034)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Content.Shared.Trigger.Systems;
|
||||
|
||||
namespace Content.Shared.Trigger.Components.Triggers;
|
||||
|
||||
/// <summary>
|
||||
/// Base class for components that cause a trigger to be activated.
|
||||
/// </summary>
|
||||
public abstract partial class BaseTriggerOnXComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The key that the trigger will activate.
|
||||
/// null will activate all triggers.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public string? KeyOut = TriggerSystem.DefaultTriggerKey;
|
||||
}
|
||||
Reference in New Issue
Block a user