|
Vertices Engine
v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
|
The network server which is used when a player hosts a game session. More...
Public Member Functions | |
| void | Initialise (vxNetworkBackend networkBackend, string serverName, string version="1.0.0.0", int port=14242, Action callback=null) |
| Initialise the Network Backend for a given type. | |
| void | Start () |
| Starts the server, this opens the server to connection requests and places it in the lobby state. | |
| void | Shutdown () |
| void | Dispose () |
Properties | |
| string | ServerName [get] |
| The Server Name. | |
| int | NumberOfPlayers [get] |
| Gets the number of players. | |
| int | MaxNumberOfPlayers [get] |
| Gets the max number of players. | |
| bool | IsServerFull [get] |
| Is the server full? | |
| vxNetworkBackend | NetworkBackend [get] |
| Gets the network backend. | |
| vxEnumNetSessionState | SessionStatus [get] |
| Gets the session status. | |
| int | Port [get] |
| bool | IsAcceptingIncomingConnections [get, set] |
| Version | ServerVersion [get] |
| A version code used for checking if the client is up to date enough to connect with us. | |
Events | |
| EventHandler< vxNetServerEventDiscoverySignalRequest > | DiscoverySignalRequestRecieved |
| This event fires when ever a Discovery Signal is Recieved. | |
| EventHandler< vxNetServerEventClientConnected > | ClientConnected |
| This event fires whenever a new client connects. | |
| EventHandler< vxNetServerEventClientDisconnected > | ClientDisconnected |
| This event fires whenever a new client disconnects. | |
| EventHandler< vxNetServerEventPlayerJoined > | PlayerJoinedConnected |
| EventHandler< vxNetServerEventPlayerStatusUpdate > | UpdatePlayerStatus |
| This event updates the player status within the server. | |
| EventHandler< vxNetmsgUpdatePlayerEntityState > | UpdatePlayerEntityState |
| This Event fires when ever the server recieves updated information for an Entity State from a client. | |
| Action< vxEnumNetSessionState > | SessionStateChanged = (state) => { } |
The network server which is used when a player hosts a game session.
| void VerticesEngine.Net.vxNetworkServer.Initialise | ( | vxNetworkBackend | networkBackend, |
| string | serverName, | ||
| string | version = "1.0.0.0", | ||
| int | port = 14242, | ||
| Action | callback = null ) |
Initialise the Network Backend for a given type.
| networkBackend | |
| serverName | |
| maxPlayers | |
| port | |
| callback |
|
get |
Gets the max number of players.
The max number of players.
|
get |
Gets the network backend.
The network backend.
|
get |
Gets the number of players.
The number of players.
|
get |
Gets the session status.
The session status.