-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IRConParser
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IRConParser[[IRConParser]]
class SharedLibraryCore.Interfaces.IRConParser interfaceStyle;
end
Type | Name | Methods |
---|---|---|
bool |
CanGenerateLogPath indicates if the game supports generating a log path from DVAR retrieval of fs_game, fs_basepath, g_log |
get |
IRConParserConfiguration |
Configuration stores the RCon configuration |
get, set |
Game |
GameName specifies the game name (usually the internal studio iteration ie: IW4, T5 etc...) |
get |
bool |
IsOneLog indicates that the game does not log to the mods folder (when mod is loaded), but rather always to the fs_basegame directory |
get |
string |
Name specifies the name of the parser |
get |
string |
RConEngine specifies the type of rcon engine eg: COD, Source |
get |
string |
Version stores the game/client specific version (usually the value of the "version" DVAR) |
get |
Returns | Name |
---|---|
Task <string``[] > |
ExecuteCommandAsync (IRConConnection connection, string command, CancellationToken token)executes a console command on the server |
T |
GetDefaultDvarValue (string dvarName) |
Task <Dvar <T >> |
GetDvarAsync (IRConConnection connection, string dvarName, T fallbackValue, CancellationToken token) |
string |
GetOverrideDvarName (string dvarName)retrieves the value of given dvar key if it exists in the override dict otherwise returns original |
Task <IStatusResponse > |
GetStatusAsync (IRConConnection connection, CancellationToken token)get the list of connected clients from status response |
Nullable <TimeSpan > |
OverrideTimeoutForCommand (string command)determines the amount of time to wait for the command to respond |
Task <bool > |
SetDvarAsync (IRConConnection connection, string dvarName, object dvarValue, CancellationToken token)set value of DVAR by name |
public Task<Dvar<T>> GetDvarAsync<T>(IRConConnection connection, string dvarName, T fallbackValue, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
IRConConnection |
connection | |
string |
dvarName | |
T |
fallbackValue | |
CancellationToken |
token |
public Task<bool> SetDvarAsync(IRConConnection connection, string dvarName, object dvarValue, CancellationToken token)
Type | Name | Description |
---|---|---|
IRConConnection |
connection | RCon connection to use |
string |
dvarName | name of DVAR to set |
object |
dvarValue | value to set DVAR to |
CancellationToken |
token |
set value of DVAR by name
public Task<string> ExecuteCommandAsync(IRConConnection connection, string command, CancellationToken token)
Type | Name | Description |
---|---|---|
IRConConnection |
connection | RCon connection to use |
string |
command | console command to execute |
CancellationToken |
token |
executes a console command on the server
public Task<IStatusResponse> GetStatusAsync(IRConConnection connection, CancellationToken token)
Type | Name | Description |
---|---|---|
IRConConnection |
connection | RCon connection to use |
CancellationToken |
token |
get the list of connected clients from status response
public string GetOverrideDvarName(string dvarName)
Type | Name | Description |
---|---|---|
string |
dvarName | name of dvar key |
retrieves the value of given dvar key if it exists in the override dict otherwise returns original
public T GetDefaultDvarValue<T>(string dvarName)
where T :
Type | Name | Description |
---|---|---|
string |
dvarName |
public Nullable<TimeSpan> OverrideTimeoutForCommand(string command)
Type | Name | Description |
---|---|---|
string |
command | name of command being executed |
determines the amount of time to wait for the command to respond
public IRConParserConfiguration Configuration { get; set; }
stores the RCon configuration
public string Version { get; }
stores the game/client specific version (usually the value of the "version" DVAR)
public Game GameName { get; }
specifies the game name (usually the internal studio iteration ie: IW4, T5 etc...)
public bool CanGenerateLogPath { get; }
indicates if the game supports generating a log path from DVAR retrieval of fs_game, fs_basepath, g_log
public string Name { get; }
specifies the name of the parser
public string RConEngine { get; }
specifies the type of rcon engine eg: COD, Source
public bool IsOneLog { get; }
indicates that the game does not log to the mods folder (when mod is loaded), but rather always to the fs_basegame directory
Generated with ModularDoc