C# Class OpenRA.Mods.Common.Server.LobbyCommands

Inheritance: ServerTrait, IInterpretCommand, INotifyServerStart, INotifyServerEmpty, IClientJoined
Mostrar archivo Open project: OpenRA/OpenRA Class Usage Examples

Public Methods

Method Description
ClientJoined ( Server server, Connection conn ) : void
InterpretCommand ( Server server, Connection conn, Session client, string cmd ) : bool
LoadMapSettings ( Server server, Session gs, Ruleset rules ) : void
PlayerReferenceForSlot ( Server server, Session slot ) : PlayerReference
ServerStarted ( Server server ) : void
ValidateCommand ( Server server, Connection conn, Session client, string cmd ) : bool

Private Methods

Method Description
CheckAutoStart ( Server server ) : void
MakeSlotFromPlayerReference ( PlayerReference pr ) : Session.Slot
MissionBriefingOrDefault ( Server server ) : string
SanitizePlayerColor ( Server server, HSLColor askedColor, int playerIndex, Connection connectionToEcho = null ) : HSLColor
ValidateSlotCommand ( Server server, Connection conn, Session client, string arg, bool requiresHost ) : bool

Method Details

ClientJoined() public method

public ClientJoined ( Server server, Connection conn ) : void
server OpenRA.Server.Server
conn OpenRA.Server.Connection
return void

InterpretCommand() public method

public InterpretCommand ( Server server, Connection conn, Session client, string cmd ) : bool
server OpenRA.Server.Server
conn OpenRA.Server.Connection
client OpenRA.Network.Session
cmd string
return bool

LoadMapSettings() public static method

public static LoadMapSettings ( Server server, Session gs, Ruleset rules ) : void
server OpenRA.Server.Server
gs OpenRA.Network.Session
rules Ruleset
return void

PlayerReferenceForSlot() public method

public PlayerReferenceForSlot ( Server server, Session slot ) : PlayerReference
server OpenRA.Server.Server
slot OpenRA.Network.Session
return PlayerReference

ServerStarted() public method

public ServerStarted ( Server server ) : void
server OpenRA.Server.Server
return void

ValidateCommand() public static method

public static ValidateCommand ( Server server, Connection conn, Session client, string cmd ) : bool
server OpenRA.Server.Server
conn OpenRA.Server.Connection
client OpenRA.Network.Session
cmd string
return bool