using Content.Server.GameTicking;
using Content.Server.GameTicking.Events;
namespace Content.Server.Administration.Logs;
///
/// For system events that the manager needs to know about.
/// for admin log usage.
///
public sealed class AdminLogSystem : EntitySystem
{
[Dependency] private readonly IAdminLogManager _adminLogs = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent(ev => _adminLogs.RoundStarting(ev.Id));
SubscribeLocalEvent(ev => _adminLogs.RunLevelChanged(ev.New));
}
public override void Update(float frameTime)
{
_adminLogs.Update();
}
public override void Shutdown()
{
base.Shutdown();
_adminLogs.Shutdown();
}
}