sharedlibrarycoredatabasemodels EFClient - RaidMax/IW4M-Admin GitHub Wiki
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Database.Models
SharedLibraryCore.Database.Models.EFClient[[EFClient]]
end
subgraph Data.Models.Client
Data.Models.Client.EFClient[[EFClient]]
end
Data.Models.Client.EFClient --> SharedLibraryCore.Database.Models.EFClient
Type | Name | Methods |
---|---|---|
string |
CleanedName |
get |
int |
ClientNumber |
get, set |
ClientPermission |
ClientPermission |
get |
int |
ConnectionLength |
get |
DateTime |
ConnectionTime |
get, set |
Server |
CurrentServer |
get, set |
string |
GuidString |
get |
Nullable <int > |
IPAddress |
get, set |
string |
IPAddressString |
get |
bool |
IsBot |
get |
bool |
IsIngame |
get |
bool |
IsZombieClient |
get |
IDictionary <int , long > |
LinkedAccounts |
get, set |
string |
Name |
get, set |
int |
Ping |
get, set |
int |
Score |
get, set |
ClientState |
State |
get, set |
string |
Tag |
get, set |
TeamType |
Team |
get, set |
string |
TeamName |
get, set |
int |
TemporalClientNumber |
get |
int |
Warnings |
get, set |
string |
XuidString |
get |
Returns | Name |
---|---|
void |
Finalize () |
Returns | Name |
---|---|
GameEvent |
Ban (string banReason, EFClient sender, bool isEvade)permanently ban a client |
Task <bool > |
CanConnect (Nullable <int > ipAddress, bool enableImplicitLinking) |
bool |
Equals (object obj) |
GameEvent |
Flag (string flagReason, EFClient sender, Nullable <TimeSpan > flagLength) |
int |
GetHashCode () |
bool |
IsAbleToConnectSimple ()Handles any client related logic on connection |
GameEvent |
Kick (... )kick a client for the given reason |
Task |
Lock () |
Task |
OnDisconnect () |
Task |
OnJoin (Nullable <int > ipAddress, bool enableImplicitLinking) |
GameEvent |
Report (string reportReason, EFClient sender)report a client for a given reason |
GameEvent |
SetLevel (Permission newPermission, EFClient sender) |
GameEvent |
Tell (... )send a message directly to the connected client |
Task |
TellAsync (IEnumerable <string > messages, CancellationToken token) |
GameEvent |
TempBan (string tempbanReason, TimeSpan banLength, EFClient sender)temporarily ban a client for the given time span |
string |
ToString () |
GameEvent |
Unban (string unbanReason, EFClient sender)unban a client |
GameEvent |
Unflag (string unflagReason, EFClient sender)unflag a client for a given reason |
void |
Unlock () |
void |
UpdateTeam (string newTeam) |
GameEvent |
Warn (string warnReason, EFClient sender)warn a client with given reason |
GameEvent |
WarnClear (EFClient sender)clear all warnings for a client |
ClientState
TeamType
public EFClient()
protected override void Finalize()
public override string ToString()
public GameEvent Tell(string message)
Type | Name | Description |
---|---|---|
string |
message | message content to send to client |
send a message directly to the connected client
public void Tell(IEnumerable<string> messages)
Type | Name | Description |
---|---|---|
IEnumerable <string > |
messages |
public async Task TellAsync(IEnumerable<string> messages, CancellationToken token)
Type | Name | Description |
---|---|---|
IEnumerable <string > |
messages | |
CancellationToken |
token |
public GameEvent Warn(string warnReason, EFClient sender)
Type | Name | Description |
---|---|---|
string |
warnReason | reason for warn |
EFClient |
sender | client performing the warn |
warn a client with given reason
public GameEvent WarnClear(EFClient sender)
Type | Name | Description |
---|---|---|
EFClient |
sender | client performing the warn clear |
clear all warnings for a client
public GameEvent Report(string reportReason, EFClient sender)
Type | Name | Description |
---|---|---|
string |
reportReason | reason for the report |
EFClient |
sender | client performing the report |
report a client for a given reason
public GameEvent Flag(string flagReason, EFClient sender, Nullable<TimeSpan> flagLength)
Type | Name | Description |
---|---|---|
string |
flagReason | |
EFClient |
sender | |
Nullable <TimeSpan > |
flagLength |
public GameEvent Unflag(string unflagReason, EFClient sender)
Type | Name | Description |
---|---|---|
string |
unflagReason | reason to unflag a player for |
EFClient |
sender | client performing the unflag |
unflag a client for a given reason
game event for the un flug
public GameEvent Kick(string kickReason, EFClient sender)
Type | Name | Description |
---|---|---|
string |
kickReason | reason to kick for |
EFClient |
sender | client performing the kick |
kick a client for the given reason
public GameEvent Kick(string kickReason, EFClient sender, EFPenalty originalPenalty)
Type | Name | Description |
---|---|---|
string |
kickReason | reason to kick for |
EFClient |
sender | client performing the kick |
EFPenalty |
originalPenalty | original client penalty |
kick a client for the given reason
public GameEvent TempBan(string tempbanReason, TimeSpan banLength, EFClient sender)
Type | Name | Description |
---|---|---|
string |
tempbanReason | reason for the temp ban |
TimeSpan |
banLength | how long the temp ban lasts |
EFClient |
sender | client performing the tempban |
temporarily ban a client for the given time span
public GameEvent Ban(string banReason, EFClient sender, bool isEvade)
Type | Name | Description |
---|---|---|
string |
banReason | reason for the ban |
EFClient |
sender | client performing the ban |
bool |
isEvade | obsolete |
permanently ban a client
public GameEvent Unban(string unbanReason, EFClient sender)
Type | Name | Description |
---|---|---|
string |
unbanReason | reason for the unban |
EFClient |
sender | client performing the unban |
unban a client
public GameEvent SetLevel(Permission newPermission, EFClient sender)
Type | Name | Description |
---|---|---|
Permission |
newPermission | |
EFClient |
sender |
public bool IsAbleToConnectSimple()
Handles any client related logic on connection
public async Task OnDisconnect()
public async Task OnJoin(Nullable<int> ipAddress, bool enableImplicitLinking)
Type | Name | Description |
---|---|---|
Nullable <int > |
ipAddress | |
bool |
enableImplicitLinking |
public async Task<bool> CanConnect(Nullable<int> ipAddress, bool enableImplicitLinking)
Type | Name | Description |
---|---|---|
Nullable <int > |
ipAddress | |
bool |
enableImplicitLinking |
public void UpdateTeam(string newTeam)
Type | Name | Description |
---|---|---|
string |
newTeam |
public async Task Lock()
public void Unlock()
public override bool Equals(object obj)
Type | Name | Description |
---|---|---|
object |
obj |
public override int GetHashCode()
public virtual string Name { get; set; }
public string CleanedName { get; }
public virtual Nullable<int> IPAddress { get; set; }
public string IPAddressString { get; }
public bool IsIngame { get; }
public virtual IDictionary<int, long> LinkedAccounts { get; set; }
public int ClientNumber { get; set; }
public int Ping { get; set; }
public int Warnings { get; set; }
public DateTime ConnectionTime { get; set; }
public int ConnectionLength { get; }
public Server CurrentServer { get; set; }
public int Score { get; set; }
public bool IsBot { get; }
public bool IsZombieClient { get; }
public string XuidString { get; }
public string GuidString { get; }
public ClientState State { get; set; }
public TeamType Team { get; set; }
public string TeamName { get; set; }
public ClientPermission ClientPermission { get; }
public string Tag { get; set; }
public int TemporalClientNumber { get; }
Generated with ModularDoc