Escape pods (#14809)
* Namespace adjustments for days * pod * thanks rider * Fix the oop launch * Fixes * Fix stuff * eeeeeeeee * Fix * access * map * forgor * thing * Genericise escape pod fill
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using Content.Server.Shuttles.Systems;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, Access(typeof(ArrivalsSystem))]
|
||||
public sealed class ArrivalsShuttleComponent : Component
|
||||
{
|
||||
[DataField("station")]
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
using Content.Server.Shuttles.Systems;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Added to a designated arrivals station for players to spawn at, if enabled.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, Access(typeof(ArrivalsSystem))]
|
||||
public sealed class ArrivalsSourceComponent : Component
|
||||
{
|
||||
|
||||
|
||||
14
Content.Server/Shuttles/Components/EscapePodComponent.cs
Normal file
14
Content.Server/Shuttles/Components/EscapePodComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Server.Shuttles.Systems;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// If added to a grid gets launched when the emergency shuttle launches.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(EmergencyShuttleSystem))]
|
||||
public sealed class EscapePodComponent : Component
|
||||
{
|
||||
[DataField("launchTime", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan? LaunchTime;
|
||||
}
|
||||
13
Content.Server/Shuttles/Components/GridFillComponent.cs
Normal file
13
Content.Server/Shuttles/Components/GridFillComponent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Content.Server.Shuttles.Systems;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// If added to an airlock will try to autofill a grid onto it on MapInit
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(ShuttleSystem))]
|
||||
public sealed class GridFillComponent : Component
|
||||
{
|
||||
[DataField("path")] public ResourcePath Path = new("/Maps/Shuttles/escape_pod_small.yml");
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using Content.Server.Shuttles.Systems;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
@@ -5,7 +6,7 @@ namespace Content.Server.Shuttles.Components;
|
||||
/// <summary>
|
||||
/// Added to a station that is available for arrivals shuttles.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, Access(typeof(ArrivalsSystem))]
|
||||
public sealed class StationArrivalsComponent : Component
|
||||
{
|
||||
[DataField("shuttle")]
|
||||
|
||||
Reference in New Issue
Block a user