Thrusters (shuttle go nyoom) (#5352)

This commit is contained in:
metalgearsloth
2021-11-21 17:09:49 +11:00
committed by GitHub
parent c21a9e32b1
commit bdead40a80
37 changed files with 1100 additions and 140 deletions

View File

@@ -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.

View File

@@ -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
{

View File

@@ -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;
}

View File

@@ -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.

View File

@@ -0,0 +1,12 @@
using System;
using Robust.Shared.Serialization;
namespace Content.Shared.Shuttles.Components
{
[Serializable, NetSerializable]
public enum ThrusterVisualState : byte
{
State,
Thrusting,
}
}

View File

@@ -1,4 +1,5 @@
using Content.Shared.Movement;
using Content.Shared.Shuttles.Components;
using Robust.Shared.GameObjects;
namespace Content.Shared.Shuttles