* Converted all SnapGridPositionChangedEvent subscriptions to AnchorStateChangedEvent. * Fixes power tests with new anchored requirements. * Moved AnchorableComponent into construction. AnchorableComponent now uses Transform.Anchored. * Fixed bug with nodes, power works again. * Adds lifetime stages to Component. * Update Engine to v0.4.70.
26 lines
540 B
C#
26 lines
540 B
C#
#nullable enable
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.Mind.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class VisitingMindComponent : Component
|
|
{
|
|
public override string Name => "VisitingMind";
|
|
|
|
[ViewVariables] public Mind Mind { get; set; } = default!;
|
|
|
|
protected override void OnRemove()
|
|
{
|
|
base.OnRemove();
|
|
|
|
Mind?.UnVisit();
|
|
}
|
|
}
|
|
|
|
public class MindUnvisitedMessage : EntityEventArgs
|
|
{
|
|
}
|
|
}
|