mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
* Split cargo shuttle to its own component
If mappers want 1 morbillion of them this is easier to manage.
* balls
(cherry picked from commit 55a60b0fca)
20 lines
637 B
C#
20 lines
637 B
C#
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server.Shuttles.Components;
|
|
|
|
/// <summary>
|
|
/// GridSpawnComponent but for cargo shuttles
|
|
/// <remarks>
|
|
/// This exists so we don't need to make 1 change to GridSpawn for every single station's unique shuttles.
|
|
/// </remarks>
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class StationCargoShuttleComponent : Component
|
|
{
|
|
// If you add more than just make an abstract comp, split them, then use overloads in the system.
|
|
// YAML is filled out so mappers don't have to read here.
|
|
|
|
[DataField(required: true)]
|
|
public ResPath Path = new("/Maps/Shuttles/cargo.yml");
|
|
}
|