Files
crystall-punk-14/Content.Shared/GameObjects/Components/Observer/SharedGhostComponent.cs

30 lines
795 B
C#
Raw Normal View History

2020-03-03 19:10:07 +01:00
using System;
using Robust.Shared.GameObjects;
2020-03-03 19:10:07 +01:00
using Robust.Shared.Serialization;
2020-04-05 02:29:04 +02:00
namespace Content.Shared.GameObjects.Components.Observer
{
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; }
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;
}
}