32 lines
756 B
C#
32 lines
756 B
C#
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,
|
|
}
|