Make AdminLogsSystem an IoC manager (#8492)
* Make log not entity system * Fixes
This commit is contained in:
26
Content.Server/Administration/Logs/IAdminLogManager.cs
Normal file
26
Content.Server/Administration/Logs/IAdminLogManager.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Database;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Shared.Administration.Logs;
|
||||
|
||||
namespace Content.Server.Administration.Logs;
|
||||
|
||||
public interface IAdminLogManager : ISharedAdminLogManager
|
||||
{
|
||||
void Initialize();
|
||||
Task Shutdown();
|
||||
void Update();
|
||||
|
||||
void RoundStarting(int id);
|
||||
void RunLevelChanged(GameRunLevel level);
|
||||
|
||||
Task<List<SharedAdminLog>> All(LogFilter? filter = null);
|
||||
IAsyncEnumerable<string> AllMessages(LogFilter? filter = null);
|
||||
IAsyncEnumerable<JsonDocument> AllJson(LogFilter? filter = null);
|
||||
Task<Round> Round(int roundId);
|
||||
Task<List<SharedAdminLog>> CurrentRoundLogs(LogFilter? filter = null);
|
||||
IAsyncEnumerable<string> CurrentRoundMessages(LogFilter? filter = null);
|
||||
IAsyncEnumerable<JsonDocument> CurrentRoundJson(LogFilter? filter = null);
|
||||
Task<Round> CurrentRound();
|
||||
}
|
||||
Reference in New Issue
Block a user