2020-03-03 19:10:07 +01:00
|
|
|
using System;
|
2020-03-03 18:04:16 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-03-03 19:10:07 +01:00
|
|
|
using Robust.Shared.Serialization;
|
2020-03-03 18:04:16 +01:00
|
|
|
|
2020-04-05 02:29:04 +02:00
|
|
|
namespace Content.Shared.GameObjects.Components.Observer
|
2020-03-03 18:04:16 +01:00
|
|
|
{
|
|
|
|
|
public class SharedGhostComponent : Component
|
|
|
|
|
{
|
|
|
|
|
public override string Name => "Ghost";
|
2020-03-03 19:10:07 +01:00
|
|
|
public override uint? NetID => ContentNetIDs.GHOST;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public class GhostComponentState : ComponentState
|
|
|
|
|
{
|
|
|
|
|
public bool CanReturnToBody { get; }
|
|
|
|
|
|
2020-06-08 16:49:05 -04:00
|
|
|
public GhostComponentState(bool canReturnToBody) : base(ContentNetIDs.GHOST)
|
2020-03-03 19:10:07 +01:00
|
|
|
{
|
|
|
|
|
CanReturnToBody = canReturnToBody;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public class ReturnToBodyComponentMessage : ComponentMessage
|
|
|
|
|
{
|
|
|
|
|
public ReturnToBodyComponentMessage() => Directed = true;
|
2020-03-03 18:04:16 +01:00
|
|
|
}
|
|
|
|
|
}
|