﻿using Content.Server.Mobs;
using Robust.Shared.GameObjects;

namespace Content.Server.GameObjects.Components.Mobs
{
    [RegisterComponent]
    public sealed class VisitingMindComponent : Component
    {
        public override string Name => "VisitingMind";

        public Mind Mind { get; set; }

        public override void OnRemove()
        {
            base.OnRemove();

            Mind?.UnVisit();
        }
    }
}

﻿using Content.Server.Mobs;
using Robust.Shared.GameObjects;
using Robust.Shared.ViewVariables;

namespace Content.Server.GameObjects.Components.Mobs
{
    [RegisterComponent]
    public sealed class VisitingMindComponent : Component
    {
        public override string Name => "VisitingMind";

        [ViewVariables]
        public Mind Mind { get; set; }

        public override void OnRemove()
        {
            base.OnRemove();

            Mind?.UnVisit();
        }
    }
}

Make VisitingMind's Mind readable by VV
Make VisitingMind's Mind readable by VV
