C# Class OpenRA.Server.Server

Afficher le fichier Open project: OpenRA/OpenRA Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
internalState ServerState

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ChooseFreePlayerIndex ( ) : int
Résultat int

DispatchOrders() public méthode

public DispatchOrders ( Connection conn, int frame, byte data ) : void
conn Connection
frame int
data byte
Résultat void

DispatchOrdersToClients() public méthode

public DispatchOrdersToClients ( Connection conn, int frame, byte data ) : void
conn Connection
frame int
data byte
Résultat void

DropClient() public méthode

public DropClient ( Connection toDrop ) : void
toDrop Connection
Résultat void

DropClient() public méthode

public DropClient ( Connection toDrop, int frame ) : void
toDrop Connection
frame int
Résultat void

EndGame() public méthode

public EndGame ( ) : void
Résultat void

GetClient() public méthode

public GetClient ( Connection conn ) : OpenRA.FileFormats.Session.Client
conn Connection
Résultat OpenRA.FileFormats.Session.Client

SendMessage() public méthode

public SendMessage ( string text ) : void
text string
Résultat void

SendOrderTo() public méthode

public SendOrderTo ( Connection conn, string order, string data ) : void
conn Connection
order string
data string
Résultat void

Server() public méthode

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

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

StartGame() public méthode

public StartGame ( ) : void
Résultat void

SyncClientPing() public méthode

public SyncClientPing ( ) : void
Résultat void

SyncClientToPlayerReference() public static méthode

public static SyncClientToPlayerReference ( OpenRA.FileFormats.Session c, OpenRA.FileFormats.PlayerReference pr ) : void
c OpenRA.FileFormats.Session
pr OpenRA.FileFormats.PlayerReference
Résultat void

SyncLobbyClients() public méthode

public SyncLobbyClients ( ) : void
Résultat void

SyncLobbyGlobalSettings() public méthode

public SyncLobbyGlobalSettings ( ) : void
Résultat void

SyncLobbyInfo() public méthode

public SyncLobbyInfo ( ) : void
Résultat void

SyncLobbySlots() public méthode

public SyncLobbySlots ( ) : void
Résultat void

Property Details

Conns public_oe property

public List Conns
Résultat List

Dedicated public_oe property

public bool Dedicated
Résultat bool

Ip public_oe property

public IPAddress,System.Net Ip
Résultat System.Net.IPAddress

LobbyInfo public_oe property

public Session,OpenRA.FileFormats LobbyInfo
Résultat OpenRA.FileFormats.Session

Map public_oe property

public MapPreview Map
Résultat MapPreview

ModData public_oe property

public ModData ModData
Résultat ModData

Port public_oe property

public int Port
Résultat int

PreConns public_oe property

public List PreConns
Résultat List

Random public_oe property

public MersenneTwister,System Random
Résultat System.MersenneTwister

Settings public_oe property

public ServerSettings Settings
Résultat ServerSettings

TempBans public_oe property

public List TempBans
Résultat List

TwoHumansRequiredText public_oe property

public string TwoHumansRequiredText
Résultat string

internalState protected_oe property

protected ServerState internalState
Résultat ServerState