Replace IResettingEntitySystem with RoundRestartCleanupEvent. (#4245)
* Replace IResettingEntitySystem with RoundRestartCleanupEvent. * oops
This commit is contained in:
committed by
GitHub
parent
16e1c2c798
commit
bc7b315b18
@@ -25,7 +25,7 @@ namespace Content.Server.StationEvents
|
||||
{
|
||||
[UsedImplicitly]
|
||||
// Somewhat based off of TG's implementation of events
|
||||
public sealed class StationEventSystem : EntitySystem, IResettingEntitySystem
|
||||
public sealed class StationEventSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IConfigurationManager _configurationManager = default!;
|
||||
[Dependency] private readonly IServerNetManager _netManager = default!;
|
||||
@@ -185,6 +185,8 @@ namespace Content.Server.StationEvents
|
||||
|
||||
_netManager.RegisterNetMessage<MsgRequestStationEvents>(RxRequest);
|
||||
_netManager.RegisterNetMessage<MsgStationEvents>();
|
||||
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(Reset);
|
||||
}
|
||||
|
||||
private void RxRequest(MsgRequestStationEvents msg)
|
||||
@@ -359,7 +361,7 @@ namespace Content.Server.StationEvents
|
||||
base.Shutdown();
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
public void Reset(RoundRestartCleanupEvent ev)
|
||||
{
|
||||
if (CurrentEvent?.Running == true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user