Add cargo shuttle (#8686)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
using Content.Server.Cargo.Components;
|
||||
using Content.Server.Station.Systems;
|
||||
using Content.Shared.Cargo;
|
||||
using Content.Shared.Cargo.Components;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
@@ -9,11 +12,28 @@ public sealed partial class CargoSystem : SharedCargoSystem
|
||||
[Dependency] private readonly IPrototypeManager _protoMan = default!;
|
||||
[Dependency] private readonly ItemSlotsSystem _slots = default!;
|
||||
|
||||
private ISawmill _sawmill = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
_sawmill = Logger.GetSawmill("cargo");
|
||||
InitializeConsole();
|
||||
InitializeShuttle();
|
||||
InitializeTelepad();
|
||||
SubscribeLocalEvent<StationInitializedEvent>(OnStationInit);
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
Cleanup();
|
||||
}
|
||||
|
||||
private void OnStationInit(StationInitializedEvent ev)
|
||||
{
|
||||
EnsureComp<StationBankAccountComponent>(ev.Station);
|
||||
EnsureComp<StationCargoOrderDatabaseComponent>(ev.Station);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
Reference in New Issue
Block a user