Thrusters (shuttle go nyoom) (#5352)
This commit is contained in:
@@ -7,7 +7,7 @@ using Robust.Shared.Players;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
namespace Content.Shared.Shuttles.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Stores what shuttle this entity is currently piloting.
|
||||
@@ -1,8 +1,7 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
namespace Content.Shared.Shuttles.Components
|
||||
{
|
||||
public abstract class SharedDockingComponent : Component
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
namespace Content.Shared.Shuttles.Components
|
||||
{
|
||||
public abstract class SharedShuttleComponent : Component
|
||||
{
|
||||
@@ -10,12 +10,6 @@ namespace Content.Shared.Shuttles
|
||||
[ViewVariables]
|
||||
public virtual bool Enabled { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// How much our linear impulse is multiplied by.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float SpeedMultipler { get; set; } = 200.0f;
|
||||
|
||||
[ViewVariables]
|
||||
public ShuttleMode Mode { get; set; } = ShuttleMode.Cruise;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
namespace Content.Shared.Shuttles.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Interact with to start piloting a shuttle.
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Shuttles.Components
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public enum ThrusterVisualState : byte
|
||||
{
|
||||
State,
|
||||
Thrusting,
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Movement;
|
||||
using Content.Shared.Shuttles.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
|
||||
Reference in New Issue
Block a user