From b94b52396e52e7627d80495f019a89a51751c6a8 Mon Sep 17 00:00:00 2001
From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Date: Fri, 12 Jul 2024 21:04:53 -0700
Subject: [PATCH] Add doc comments to target action components (#29982)
---
Content.Shared/Actions/EntityTargetActionComponent.cs | 10 ++++++++++
Content.Shared/Actions/WorldTargetActionComponent.cs | 3 +++
2 files changed, 13 insertions(+)
diff --git a/Content.Shared/Actions/EntityTargetActionComponent.cs b/Content.Shared/Actions/EntityTargetActionComponent.cs
index 9024f42e0e77..7217794b23b9 100644
--- a/Content.Shared/Actions/EntityTargetActionComponent.cs
+++ b/Content.Shared/Actions/EntityTargetActionComponent.cs
@@ -4,6 +4,9 @@
namespace Content.Shared.Actions;
+///
+/// Used on action entities to define an action that triggers when targeting an entity.
+///
[RegisterComponent, NetworkedComponent]
public sealed partial class EntityTargetActionComponent : BaseTargetActionComponent
{
@@ -16,8 +19,15 @@ public sealed partial class EntityTargetActionComponent : BaseTargetActionCompon
[NonSerialized]
public EntityTargetActionEvent? Event;
+ ///
+ /// Determines which entities are valid targets for this action.
+ ///
+ /// No whitelist check when null.
[DataField("whitelist")] public EntityWhitelist? Whitelist;
+ ///
+ /// Whether this action considers the user as a valid target entity when using this action.
+ ///
[DataField("canTargetSelf")] public bool CanTargetSelf = true;
}
diff --git a/Content.Shared/Actions/WorldTargetActionComponent.cs b/Content.Shared/Actions/WorldTargetActionComponent.cs
index 4974b4478dbf..8066a6403492 100644
--- a/Content.Shared/Actions/WorldTargetActionComponent.cs
+++ b/Content.Shared/Actions/WorldTargetActionComponent.cs
@@ -3,6 +3,9 @@
namespace Content.Shared.Actions;
+///
+/// Used on action entities to define an action that triggers when targeting an entity coordinate.
+///
[RegisterComponent, NetworkedComponent]
public sealed partial class WorldTargetActionComponent : BaseTargetActionComponent
{