]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
add some documentation for visiting entity (#38475)
authorJust-a-Unity-Dev <67359748+Just-a-Unity-Dev@users.noreply.github.com>
Sat, 21 Jun 2025 09:19:57 +0000 (17:19 +0800)
committerGitHub <noreply@github.com>
Sat, 21 Jun 2025 09:19:57 +0000 (11:19 +0200)
* add some documentation for visiting entity

to prevent someone from spending 5 minutes diving into the codebase

* reviews

Co-authored-by: LaCumbiaDelCoronavirus <90893484+LaCumbiaDelCoronavirus@users.noreply.github.com>
---------

Co-authored-by: LaCumbiaDelCoronavirus <90893484+LaCumbiaDelCoronavirus@users.noreply.github.com>
Content.Shared/Mind/MindComponent.cs

index 7864d61a8cca6925a456e28d4d07b6d3a7066451..57cd628f90618f2fa4d2094f8dbc12f54a3885a4 100644 (file)
@@ -55,6 +55,9 @@ public sealed partial class MindComponent : Component
     [ViewVariables]
     public bool IsVisitingEntity => VisitingEntity != null;
 
+    /// <summary>
+    /// The entity that this mind may be currently visiting. Used, for example, to allow admin ghosting to not make the owner's body catatonic, as opposed to when normally ghosting.
+    /// </summary>
     [DataField, AutoNetworkedField, Access(typeof(SharedMindSystem))]
     public EntityUid? VisitingEntity { get; set; }