-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IGameLogReader
RaidMax edited this page May 21, 2023
·
1 revision
represents the abstraction of game log reading
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IGameLogReader[[IGameLogReader]]
class SharedLibraryCore.Interfaces.IGameLogReader interfaceStyle;
end
Type | Name | Methods |
---|---|---|
long |
Length how long the log file is |
get |
int |
UpdateInterval how often to poll the log file |
get |
Returns | Name |
---|---|
Task <IEnumerable <GameEvent >> |
ReadEventsFromLog (long fileSizeDiff, long startPosition, Server server)get new events that have occured since the last poll |
represents the abstraction of game log reading
public Task<IEnumerable<GameEvent>> ReadEventsFromLog(long fileSizeDiff, long startPosition, Server server)
Type | Name | Description |
---|---|---|
long |
fileSizeDiff | |
long |
startPosition | |
Server |
server |
get new events that have occured since the last poll
public long Length { get; }
how long the log file is
public int UpdateInterval { get; }
how often to poll the log file
Generated with ModularDoc