Shuttle drone improvements (#16931)
This commit is contained in:
@@ -1096,17 +1096,11 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<bool> ArrivalsReturns =
|
||||
CVarDef.Create("shuttle.arrivals_returns", false, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether cargo shuttles are enabled.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> CargoShuttles =
|
||||
CVarDef.Create("shuttle.cargo", true, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether to automatically spawn escape shuttles.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> DisableGridFill =
|
||||
CVarDef.Create("shuttle.disable_grid_fill", false, CVar.SERVERONLY);
|
||||
public static readonly CVarDef<bool> GridFill =
|
||||
CVarDef.Create("shuttle.grid_fill", true, CVar.SERVERONLY);
|
||||
|
||||
/*
|
||||
* Emergency
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
@@ -7,15 +7,9 @@ namespace Content.Shared.Cargo.Components;
|
||||
/// <summary>
|
||||
/// Present on cargo shuttles to provide metadata such as preventing spam calling.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SharedCargoSystem))]
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedCargoSystem))]
|
||||
public sealed class CargoShuttleComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The assigned station for this cargo shuttle.
|
||||
/// </summary>
|
||||
[DataField("station")]
|
||||
public EntityUid? Station;
|
||||
|
||||
/// <summary>
|
||||
/// The paper-type prototype to spawn with the order information.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
using Content.Shared.Dataset;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Cargo.Prototypes;
|
||||
|
||||
[Prototype("cargoShuttle")]
|
||||
public sealed class CargoShuttlePrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("path")]
|
||||
public ResPath Path = default!;
|
||||
|
||||
[DataField("nameDataset", customTypeSerializer:typeof(PrototypeIdSerializer<DatasetPrototype>))]
|
||||
public string NameDataset = "CargoShuttleNames";
|
||||
}
|
||||
Reference in New Issue
Block a user