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

39 lines
1.1 KiB
C#
Raw Normal View History

2020-03-03 19:10:07 +01:00
using System;
2020-06-24 02:21:20 +02:00
using Content.Shared.GameObjects.EntitySystems;
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
{
2020-06-24 02:21:20 +02:00
public class SharedGhostComponent : Component, IActionBlocker
{
public override string Name => "Ghost";
2020-03-03 19:10:07 +01:00
public override uint? NetID => ContentNetIDs.GHOST;
2020-06-24 02:21:20 +02:00
public bool CanInteract() => false;
public bool CanUse() => false;
public bool CanThrow() => false;
public bool CanDrop() => false;
public bool CanPickup() => false;
public bool CanEmote() => false;
public bool CanAttack() => false;
2020-03-03 19:10:07 +01:00
}
[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;
}
}