Cargo shuttle changes (#14363)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Given priority when considering where to dock an emergency shuttle.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class EmergencyDockComponent : Component {}
|
||||
@@ -1,6 +1,8 @@
|
||||
using Content.Shared.Shuttles.Systems;
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
@@ -37,6 +39,12 @@ public sealed class FTLComponent : Component
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("dock")]
|
||||
public bool Dock;
|
||||
|
||||
/// <summary>
|
||||
/// If we're docking after FTL what is the prioritised dock tag (if applicable).
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("priorityTag", customTypeSerializer:typeof(PrototypeIdSerializer<TagPrototype>))]
|
||||
public string? PriorityTag;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("soundTravel")]
|
||||
public SoundSpecifier? TravelSound = new SoundPathSpecifier("/Audio/Effects/Shuttle/hyperspace_progress.ogg")
|
||||
{
|
||||
|
||||
18
Content.Server/Shuttles/Components/PriorityDockComponent.cs
Normal file
18
Content.Server/Shuttles/Components/PriorityDockComponent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Given priority when considering where to dock.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class PriorityDockComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Tag to match on the docking request, if this dock is to be prioritised.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite),
|
||||
DataField("tag", customTypeSerializer: typeof(PrototypeIdSerializer<TagPrototype>))]
|
||||
public string? Tag;
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Content.Shared.Shuttles.Components;
|
||||
|
||||
namespace Content.Server.Shuttles.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
|
||||
Reference in New Issue
Block a user