Property | Type | Description | |
---|---|---|---|
DispatchDataIM | void | ||
DispatchIM | void | ||
DispatchStatusChange | void | ||
DispatchUserCommand | void | ||
GetPingInternal | float | ||
KillInternal | void | ||
NotifyClientsInternal | void | ||
SendNotifications | void | ||
SendSnapshot | void | ||
ServerTaskFunc | void | ||
StartInternal | void | ||
UpdateNetworkAndLogic | void | ||
UpdatePings | void | ||
Wait | void |
Method | Description | |
---|---|---|
ApproveClient ( System.Guid guid, string userInfo, string &reason ) : bool |
Approves client by id and user information.
|
|
ClientActivated ( System.Guid clientGuid ) : void |
Called when client received snapshot and ready to play.
|
|
ClientConnected ( System.Guid clientGuid, string userInfo ) : void |
Called when client connected.
|
|
ClientDeactivated ( System.Guid clientGuid ) : void |
Called when before disconnect.
|
|
ClientDisconnected ( System.Guid clientGuid ) : void |
Called when client disconnected.
|
|
FeedCommand ( System.Guid clientGuid, byte userCommand, uint commandID, float lag ) : void |
Feed server with commands from particular client.
|
|
FeedNotification ( System.Guid clientGuid, string message ) : void |
Feed server with commands from particular client.
|
|
GameServer ( Game game ) : System |
Initializes a new instance of this class.
|
|
GetIP ( System.Guid clientGuid ) : float |
Gets ping time to particular client.
|
|
GetPing ( System.Guid clientGuid ) : float |
Gets ping time to particular client.
|
|
LoadContent ( string map ) : void |
Method is invoked when server started.
|
|
NotifyClients ( string format ) : void |
Sends text message to all clients.
|
|
ServerInfo ( ) : string |
Gets server information that required for client to load the game. This information usually contains map name and game type. This information is also used for discovery response.
|
|
UnloadContent ( ) : void |
Method is invoked when server shuts down. This method will be also called when server crashes.
|
|
Update ( |
Runs one step of server-side world simulation.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases all resources used by the GameServer class.
|
Method | Description | |
---|---|---|
DispatchDataIM ( |
|
|
DispatchIM ( |
|
|
DispatchStatusChange ( |
|
|
DispatchUserCommand ( |
|
|
GetPingInternal ( System.Guid clientGuid ) : float |
|
|
KillInternal ( ) : void |
Kills server thread.
|
|
NotifyClientsInternal ( string message ) : void |
|
|
SendNotifications ( Lidgren.Network.NetServer server ) : void |
|
|
SendSnapshot ( Lidgren.Network.NetServer server, |
|
|
ServerTaskFunc ( string map, string postCommand ) : void |
|
|
StartInternal ( string map, string postCommand ) : void |
Initiate server thread.
|
|
UpdateNetworkAndLogic ( |
Updates everything related to network and game logic.
|
|
UpdatePings ( Lidgren.Network.NetServer server ) : void | ||
Wait ( ) : void |
Waits for server thread.
|
public abstract ApproveClient ( System.Guid guid, string userInfo, string &reason ) : bool | ||
guid | System.Guid | |
userInfo | string | |
reason | string | If method returns false this output parameters contains the reason of denial |
return | bool |
public abstract ClientActivated ( System.Guid clientGuid ) : void | ||
clientGuid | System.Guid | Client GUID. |
return | void |
public abstract ClientConnected ( System.Guid clientGuid, string userInfo ) : void | ||
clientGuid | System.Guid | Client GUID. |
userInfo | string | User information. Cann't be used as client identifier. |
return | void |
public abstract ClientDeactivated ( System.Guid clientGuid ) : void | ||
clientGuid | System.Guid | Client GUID. |
return | void |
public abstract ClientDisconnected ( System.Guid clientGuid ) : void | ||
clientGuid | System.Guid | Client IP in format 123.45.67.89:PORT. Could be used as client identifier. |
return | void |
public abstract FeedCommand ( System.Guid clientGuid, byte userCommand, uint commandID, float lag ) : void | ||
clientGuid | System.Guid | Client's GUID |
userCommand | byte | Client's user command bytes |
commandID | uint | Client's user command index |
lag | float | Lag in seconds |
return | void |
public abstract FeedNotification ( System.Guid clientGuid, string message ) : void | ||
clientGuid | System.Guid | Client's GUID |
message | string | |
return | void |
public GetIP ( System.Guid clientGuid ) : float | ||
clientGuid | System.Guid | |
return | float |
public GetPing ( System.Guid clientGuid ) : float | ||
clientGuid | System.Guid | |
return | float |
public abstract LoadContent ( string map ) : void | ||
map | string | |
return | void |
public NotifyClients ( string format ) : void | ||
format | string | |
return | void |
public abstract Update ( |
||
gameTime | ||
return | byte[] |