-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IGameServer
RaidMax edited this page May 21, 2023
·
1 revision
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 > |
ConnectedClients List of connected clients |
get |
Game |
GameCode Game code corresponding to the development studio project |
get |
string |
GamePassword Game password (required to join) |
get |
string |
Gametype Current gametype |
get |
string |
Id Unique identifier for the server (typically ip:port) |
get |
bool |
IsLegacyGameIntegrationEnabled Indicates if the anticheat/custom callbacks/live radar integration is enabled |
get |
long |
LegacyDatabaseId Database id for EFServer table and references |
get |
string |
ListenAddress Network address the server is listening on |
get |
int |
ListenPort Network port the server is listening on |
get |
Map |
Map Current map the game server is running |
get |
Nullable <DateTime > |
MatchEndTime Time the most recent match ended |
get |
Nullable <DateTime > |
MatchStartTime Time the current match started |
get |
int |
PrivateClientSlots Number of private client slots |
get |
string |
ServerName Name 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