Nuke portals (#4315)

This commit is contained in:
metalgearsloth
2021-07-21 19:16:10 +10:00
committed by GitHub
parent fddf1acab9
commit 94ef2cb66e
11 changed files with 0 additions and 596 deletions

View File

@@ -1,37 +0,0 @@
using System;
using Robust.Shared.GameObjects;
using Robust.Shared.Physics;
using Robust.Shared.Serialization;
namespace Content.Shared.Portal.Components
{
public abstract class SharedPortalComponent : Component
{
public override string Name => "Portal";
protected override void OnAdd()
{
base.OnAdd();
if (Owner.TryGetComponent<IPhysBody>(out var physics))
{
physics.Hard = false;
}
}
}
[Serializable, NetSerializable]
public enum PortalVisuals
{
State
}
[Serializable, NetSerializable]
public enum PortalState
{
RecentlyTeleported,
Pending,
UnableToTeleport,
}
}

View File

@@ -1,48 +0,0 @@
using System;
using Robust.Shared.GameObjects;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
namespace Content.Shared.Portal.Components
{
public enum ItemTeleporterState
{
Off,
Charging,
On,
Cooldown,
}
public enum TeleporterType
{
Directed,
Random,
Beacon,
}
[NetSerializable]
[Serializable]
public enum TeleporterVisuals
{
VisualState,
}
[NetSerializable]
[Serializable]
public enum TeleporterVisualState
{
Ready,
Charging,
}
[Serializable, NetSerializable]
public class TeleportMessage : ComponentMessage
{
public readonly EntityCoordinates Target;
public TeleportMessage(EntityCoordinates target)
{
Target = target;
}
}
}