Метод | Описание | |
---|---|---|
Broadcast ( |
Broadcasts a message to all players in a room
|
|
BroadcastExcept ( IMessage gameMessage, Bricklayer.Server.Entities.Player player ) : void |
Broadcasts a message to all players in a room, EXCEPT for the one specified
|
|
BroadcastExcept ( IMessage gameMessage, |
Broadcasts a message to all clients in a room, EXCEPT for the one specified
|
|
CreateMessage ( ) : |
Creates a NetOutgoingMessage from the interal Server object
|
|
Dispose ( ) : void |
Disposes the NetworkManager
|
|
EncodeMessage ( IMessage gameMessage ) : |
Encodes a message with a packet ID so the client can identify what kind of message it is
|
|
GetQuery ( ) : Bricklayer.Client.Networking.ServerPingData |
Creates and returns a query for a client request, with info like MOTD, online players, etc
|
|
Global ( IMessage gameMessage ) : void |
Sends a message to all players connected to the server
|
|
ReadMessage ( ) : |
Reads the latest message in the queue
|
|
Recycle ( |
Recycles a message after processing by reusing it, reducing GC load
|
|
Send ( IMessage gameMessage, Bricklayer.Server.Entities.Player player ) : void |
Encodes and sends a message to a specified player
|
|
Send ( IMessage gameMessage, |
Encodes and sends a message to a specified NetConnection recipient
|
|
Shutdown ( string reason = "Shutting Down" ) : void |
Shuts down the server and disconnects clients
|
|
Start ( int port, int maxconnections ) : void |
Starts the server connection
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes the connection and shuts down the server
|
public Broadcast ( |
||
map | Map/Room to send to | |
gameMessage | IMessage | IMessage to send |
Результат | void |
public BroadcastExcept ( IMessage gameMessage, Bricklayer.Server.Entities.Player player ) : void | ||
gameMessage | IMessage | IMessage to send |
player | Bricklayer.Server.Entities.Player | Player NOT to send to |
Результат | void |
public BroadcastExcept ( IMessage gameMessage, |
||
gameMessage | IMessage | IMessage to send |
recipient | Client NOT to send to | |
Результат | void |
public CreateMessage ( ) : |
||
Результат |
public EncodeMessage ( IMessage gameMessage ) : |
||
gameMessage | IMessage | A message to encode |
Результат |
public GetQuery ( ) : Bricklayer.Client.Networking.ServerPingData | ||
Результат | Bricklayer.Client.Networking.ServerPingData |
public Global ( IMessage gameMessage ) : void | ||
gameMessage | IMessage | IMessage to send |
Результат | void |
public ReadMessage ( ) : |
||
Результат |
public Recycle ( |
||
im | Message to recylce | |
Результат | void |
public Send ( IMessage gameMessage, Bricklayer.Server.Entities.Player player ) : void | ||
gameMessage | IMessage | IMessage to send |
player | Bricklayer.Server.Entities.Player | Player to send to |
Результат | void |
public Send ( IMessage gameMessage, |
||
gameMessage | IMessage | IMessage to send |
recipient | Client to send to | |
Результат | void |
public Shutdown ( string reason = "Shutting Down" ) : void | ||
reason | string | Reason for shutting down |
Результат | void |
public Start ( int port, int maxconnections ) : void | ||
port | int | Port to run on |
maxconnections | int | Maximum clients connectable |
Результат | void |