C# Class OpenRA.Server.Server

Exibir arquivo Open project: OpenRA/OpenRA Class Usage Examples

Public Properties

Property Type Description
Conns List
Dedicated bool
Ip System.Net.IPAddress
LobbyInfo OpenRA.FileFormats.Session
Map MapPreview
ModData ModData
Port int
PreConns List
Random System.MersenneTwister
Settings ServerSettings
TempBans List
TwoHumansRequiredText string

Protected Properties

Property Type Description
internalState ServerState

Public Methods

Method Description
ChooseFreePlayerIndex ( ) : int
DispatchOrders ( Connection conn, int frame, byte data ) : void
DispatchOrdersToClients ( Connection conn, int frame, byte data ) : void
DropClient ( Connection toDrop ) : void
DropClient ( Connection toDrop, int frame ) : void
EndGame ( ) : void
GetClient ( Connection conn ) : OpenRA.FileFormats.Session.Client
SendMessage ( string text ) : void
SendOrderTo ( Connection conn, string order, string data ) : void
Server ( IPEndPoint endpoint, ServerSettings settings, ModData modData, bool dedicated ) : System
Shutdown ( ) : void
StartGame ( ) : void
SyncClientPing ( ) : void
SyncClientToPlayerReference ( OpenRA.FileFormats.Session c, OpenRA.FileFormats.PlayerReference pr ) : void
SyncLobbyClients ( ) : void
SyncLobbyGlobalSettings ( ) : void
SyncLobbyInfo ( ) : void
SyncLobbySlots ( ) : void

Private Methods

Method Description
AcceptConnection ( ) : void
DispatchOrdersToClient ( Connection c, int client, int frame, byte data ) : void
InterpretServerOrder ( Connection conn, ServerOrder so ) : void
InterpretServerOrders ( Connection conn, byte data ) : void
SendData ( Socket s, byte data ) : void
ValidateClient ( Connection newConn, string data ) : void

Method Details

ChooseFreePlayerIndex() public method

public ChooseFreePlayerIndex ( ) : int
return int

DispatchOrders() public method

public DispatchOrders ( Connection conn, int frame, byte data ) : void
conn Connection
frame int
data byte
return void

DispatchOrdersToClients() public method

public DispatchOrdersToClients ( Connection conn, int frame, byte data ) : void
conn Connection
frame int
data byte
return void

DropClient() public method

public DropClient ( Connection toDrop ) : void
toDrop Connection
return void

DropClient() public method

public DropClient ( Connection toDrop, int frame ) : void
toDrop Connection
frame int
return void

EndGame() public method

public EndGame ( ) : void
return void

GetClient() public method

public GetClient ( Connection conn ) : OpenRA.FileFormats.Session.Client
conn Connection
return OpenRA.FileFormats.Session.Client

SendMessage() public method

public SendMessage ( string text ) : void
text string
return void

SendOrderTo() public method

public SendOrderTo ( Connection conn, string order, string data ) : void
conn Connection
order string
data string
return void

Server() public method

public Server ( IPEndPoint endpoint, ServerSettings settings, ModData modData, bool dedicated ) : System
endpoint System.Net.IPEndPoint
settings ServerSettings
modData ModData
dedicated bool
return System

Shutdown() public method

public Shutdown ( ) : void
return void

StartGame() public method

public StartGame ( ) : void
return void

SyncClientPing() public method

public SyncClientPing ( ) : void
return void

SyncClientToPlayerReference() public static method

public static SyncClientToPlayerReference ( OpenRA.FileFormats.Session c, OpenRA.FileFormats.PlayerReference pr ) : void
c OpenRA.FileFormats.Session
pr OpenRA.FileFormats.PlayerReference
return void

SyncLobbyClients() public method

public SyncLobbyClients ( ) : void
return void

SyncLobbyGlobalSettings() public method

public SyncLobbyGlobalSettings ( ) : void
return void

SyncLobbyInfo() public method

public SyncLobbyInfo ( ) : void
return void

SyncLobbySlots() public method

public SyncLobbySlots ( ) : void
return void

Property Details

Conns public_oe property

public List Conns
return List

Dedicated public_oe property

public bool Dedicated
return bool

Ip public_oe property

public IPAddress,System.Net Ip
return System.Net.IPAddress

LobbyInfo public_oe property

public Session,OpenRA.FileFormats LobbyInfo
return OpenRA.FileFormats.Session

Map public_oe property

public MapPreview Map
return MapPreview

ModData public_oe property

public ModData ModData
return ModData

Port public_oe property

public int Port
return int

PreConns public_oe property

public List PreConns
return List

Random public_oe property

public MersenneTwister,System Random
return System.MersenneTwister

Settings public_oe property

public ServerSettings Settings
return ServerSettings

TempBans public_oe property

public List TempBans
return List

TwoHumansRequiredText public_oe property

public string TwoHumansRequiredText
return string

internalState protected_oe property

protected ServerState internalState
return ServerState