Make AdminLogsSystem an IoC manager (#8492)
* Make log not entity system * Fixes
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Content.Server.StationEvents.Events
|
||||
Occurrences += 1;
|
||||
LastRun = EntitySystem.Get<GameTicker>().RoundDuration();
|
||||
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventStarted, LogImpact.High, $"Event startup: {Name}");
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Content.Server.StationEvents.Events
|
||||
/// </summary>
|
||||
public virtual void Announce()
|
||||
{
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventAnnounced, $"Event announce: {Name}");
|
||||
|
||||
if (StartAnnouncement != null)
|
||||
@@ -158,7 +158,7 @@ namespace Content.Server.StationEvents.Events
|
||||
/// </summary>
|
||||
public virtual void Shutdown()
|
||||
{
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventStopped, $"Event shutdown: {Name}");
|
||||
|
||||
if (EndAnnouncement != null)
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Content.Server.StationEvents
|
||||
[Dependency] private readonly GameTicker _gameTicker = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
[Dependency] private readonly AdminLogSystem _adminLog = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
|
||||
public StationEvent? CurrentEvent { get; private set; }
|
||||
public IReadOnlyCollection<StationEvent> StationEvents => _stationEvents;
|
||||
@@ -72,7 +72,7 @@ namespace Content.Server.StationEvents
|
||||
/// <returns></returns>
|
||||
public string RunEvent(string name)
|
||||
{
|
||||
_adminLog.Add(LogType.EventRan, LogImpact.High, $"Event run: {name}");
|
||||
_adminLogger.Add(LogType.EventRan, LogImpact.High, $"Event run: {name}");
|
||||
|
||||
// Could use a dictionary but it's such a minor thing, eh.
|
||||
// Wasn't sure on whether to localize this given it's a command
|
||||
|
||||
Reference in New Issue
Block a user