]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add doc comments to target action components (#29982)
authorShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Sat, 13 Jul 2024 04:04:53 +0000 (21:04 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 04:04:53 +0000 (14:04 +1000)
Content.Shared/Actions/EntityTargetActionComponent.cs
Content.Shared/Actions/WorldTargetActionComponent.cs

index 9024f42e0e7748dd0dc8de6c3420298917b53c92..7217794b23b90168409d00f484ebc752e45a2b03 100644 (file)
@@ -4,6 +4,9 @@ using Robust.Shared.Serialization;
 
 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
 {
@@ -16,8 +19,15 @@ public sealed partial class EntityTargetActionComponent : BaseTargetActionCompon
     [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;
 }
 
index 4974b4478dbffe2e389e0fcc38e5c23d9c792539..8066a64034920d67e3114a5d62170c645e43ab57 100644 (file)
@@ -3,6 +3,9 @@ using Robust.Shared.Serialization;
 
 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
 {