Evac shuttle (#8931)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
31
Content.Server/Shuttles/Components/HyperspaceComponent.cs
Normal file
31
Content.Server/Shuttles/Components/HyperspaceComponent.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Added to a component when it is queued or is travelling through hyperspace
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class HyperspaceComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
public HyperspaceState State = HyperspaceState.Starting;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float StartupTime = 0f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float TravelTime = 0f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Accumulator = 0f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("targetCoordinates")]
|
||||
public EntityCoordinates TargetCoordinates;
|
||||
}
|
||||
|
||||
public enum HyperspaceState : byte
|
||||
{
|
||||
Starting,
|
||||
Travelling,
|
||||
}
|
||||
Reference in New Issue
Block a user