Add basic teleportation and portals (#269)

* Add basic teleportation and portals

* Address PJB's feedback and minor cleanup
This commit is contained in:
metalgearsloth
2019-07-19 18:09:33 +10:00
committed by Pieter-Jan Briers
parent 52a6d9ff43
commit 1f320eccd7
22 changed files with 825 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System;
using Robust.Shared.GameObjects;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Movement
{
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 GridCoordinates Target;
public TeleportMessage(GridCoordinates target)
{
Target = target;
}
}
}