From 27a4c1955cdf0a20345835829f2f548a1ce66a8e Mon Sep 17 00:00:00 2001 From: Just-a-Unity-Dev <67359748+Just-a-Unity-Dev@users.noreply.github.com> Date: Sat, 21 Jun 2025 17:19:57 +0800 Subject: [PATCH] add some documentation for visiting entity (#38475) * 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Mind/MindComponent.cs b/Content.Shared/Mind/MindComponent.cs index 7864d61a8c..57cd628f90 100644 --- a/Content.Shared/Mind/MindComponent.cs +++ b/Content.Shared/Mind/MindComponent.cs @@ -55,6 +55,9 @@ public sealed partial class MindComponent : Component [ViewVariables] public bool IsVisitingEntity => VisitingEntity != null; + /// + /// 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. + /// [DataField, AutoNetworkedField, Access(typeof(SharedMindSystem))] public EntityUid? VisitingEntity { get; set; } -- 2.51.2