2020-08-21 17:43:27 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-02-07 13:52:34 +01:00
|
|
|
using Robust.Shared.ViewVariables;
|
2020-08-21 17:43:27 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Mind.Components
|
2020-08-21 17:43:27 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed class VisitingMindComponent : Component
|
|
|
|
|
{
|
2021-03-16 15:50:20 +01:00
|
|
|
[ViewVariables] public Mind Mind { get; set; } = default!;
|
2020-08-21 17:43:27 +02:00
|
|
|
|
2021-06-19 19:41:26 -07:00
|
|
|
protected override void OnRemove()
|
2020-08-21 17:43:27 +02:00
|
|
|
{
|
|
|
|
|
base.OnRemove();
|
|
|
|
|
|
|
|
|
|
Mind?.UnVisit();
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-03-31 14:17:22 -07:00
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class MindUnvisitedMessage : EntityEventArgs
|
2021-03-31 14:17:22 -07:00
|
|
|
{
|
|
|
|
|
}
|
2020-08-21 17:43:27 +02:00
|
|
|
}
|