Shuttle drone improvements (#16931)
This commit is contained in:
7
Content.Server/Station/Events/StationPostInitEvent.cs
Normal file
7
Content.Server/Station/Events/StationPostInitEvent.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Content.Server.Station.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised directed on a station after it has been initialized.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly record struct StationPostInitEvent;
|
||||
@@ -2,6 +2,7 @@ using System.Linq;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Station.Components;
|
||||
using Content.Server.Station.Events;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Station;
|
||||
using JetBrains.Annotations;
|
||||
@@ -304,6 +305,9 @@ public sealed class StationSystem : EntitySystem
|
||||
AddGridToStation(station, grid, null, data, name);
|
||||
}
|
||||
|
||||
var ev = new StationPostInitEvent();
|
||||
RaiseLocalEvent(station, ref ev);
|
||||
|
||||
return station;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user