namespace Content.Shared.Actions;
+/// <summary>
+/// Used on action entities to define an action that triggers when targeting an entity.
+/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class EntityTargetActionComponent : BaseTargetActionComponent
{
[NonSerialized]
public EntityTargetActionEvent? Event;
+ /// <summary>
+ /// Determines which entities are valid targets for this action.
+ /// </summary>
+ /// <remarks>No whitelist check when null.</remarks>
[DataField("whitelist")] public EntityWhitelist? Whitelist;
+ /// <summary>
+ /// Whether this action considers the user as a valid target entity when using this action.
+ /// </summary>
[DataField("canTargetSelf")] public bool CanTargetSelf = true;
}
namespace Content.Shared.Actions;
+/// <summary>
+/// Used on action entities to define an action that triggers when targeting an entity coordinate.
+/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class WorldTargetActionComponent : BaseTargetActionComponent
{