sharedlibrarycoreinterfaces IGameServer - RaidMax/IW4M-Admin GitHub Wiki
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IGameServer[[IGameServer]]
class SharedLibraryCore.Interfaces.IGameServer interfaceStyle;
end
| Type | Name | Methods |
|---|---|---|
IReadOnlyList<EFClient> |
ConnectedClientsList of connected clients |
get |
Game |
GameCodeGame code corresponding to the development studio project |
get |
string |
GamePasswordGame password (required to join) |
get |
string |
GametypeCurrent gametype |
get |
string |
IdUnique identifier for the server (typically ip:port) |
get |
bool |
IsLegacyGameIntegrationEnabledIndicates if the anticheat/custom callbacks/live radar integration is enabled |
get |
long |
LegacyDatabaseIdDatabase id for EFServer table and references |
get |
string |
ListenAddressNetwork address the server is listening on |
get |
int |
ListenPortNetwork port the server is listening on |
get |
Map |
MapCurrent map the game server is running |
get |
Nullable<DateTime> |
MatchEndTimeTime the most recent match ended |
get |
Nullable<DateTime> |
MatchStartTimeTime the current match started |
get |
int |
PrivateClientSlotsNumber of private client slots |
get |
string |
ServerNameName of the server (hostname) |
get |
| Returns | Name |
|---|---|
Task<string``[]> |
ExecuteCommandAsync(string command, CancellationToken token)Execute a server command |
Task |
Kick(string reason, EFClient target, EFClient origin, EFPenalty previousPenalty)kicks target on behalf of origin for given reason |
Task |
SetDvarAsync(string name, object value, CancellationToken token)Set value for server dvar |
public Task Kick(string reason, EFClient target, EFClient origin, EFPenalty previousPenalty)| Type | Name | Description |
|---|---|---|
string |
reason | reason client is being kicked |
EFClient |
target | client to kick |
EFClient |
origin | source of kick action |
EFPenalty |
previousPenalty | previous penalty the kick is occuring for (if applicable) |
kicks target on behalf of origin for given reason
public Task<string> ExecuteCommandAsync(string command, CancellationToken token)| Type | Name | Description |
|---|---|---|
string |
command | Server command to execute |
CancellationToken |
token | CancellationToken |
Execute a server command
Collection of console command output lines
public Task SetDvarAsync(string name, object value, CancellationToken token)| Type | Name | Description |
|---|---|---|
string |
name | Name of the server value to set |
object |
value | Value of the server value |
CancellationToken |
token | CancellationToken |
Set value for server dvar
public Nullable<DateTime> MatchEndTime { get; }Time the most recent match ended
public Nullable<DateTime> MatchStartTime { get; }Time the current match started
public IReadOnlyList<EFClient> ConnectedClients { get; }List of connected clients
public Game GameCode { get; }Game code corresponding to the development studio project
public bool IsLegacyGameIntegrationEnabled { get; }Indicates if the anticheat/custom callbacks/live radar integration is enabled
public string Id { get; }Unique identifier for the server (typically ip:port)
public string ListenAddress { get; }Network address the server is listening on
public int ListenPort { get; }Network port the server is listening on
public string ServerName { get; }Name of the server (hostname)
public string Gametype { get; }Current gametype
public string GamePassword { get; }Game password (required to join)
public int PrivateClientSlots { get; }Number of private client slots
public Map Map { get; }Current map the game server is running
public long LegacyDatabaseId { get; }Database id for EFServer table and references
Generated with ModularDoc