Use new ComponentPauseGenerator (#25183)
Also includes some (non critical) changes to the solution file to re-organize the Roslyn components.
This commit is contained in:
committed by
GitHub
parent
2a2324ecaf
commit
e00f74505c
@@ -29,15 +29,6 @@ public sealed class EventManagerSystem : EntitySystem
|
||||
_sawmill = Logger.GetSawmill("events");
|
||||
|
||||
Subs.CVar(_configurationManager, CCVars.EventsEnabled, SetEnabled, true);
|
||||
|
||||
SubscribeLocalEvent<StationEventComponent, EntityUnpausedEvent>(OnUnpaused);
|
||||
}
|
||||
|
||||
private void OnUnpaused(EntityUid uid, StationEventComponent component, ref EntityUnpausedEvent args)
|
||||
{
|
||||
component.StartTime += args.PausedTime;
|
||||
if (component.EndTime != null)
|
||||
component.EndTime = component.EndTime.Value + args.PausedTime;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user