C# Класс OpenRA.Mods.Common.Server.LobbyCommands

Наследование: ServerTrait, IInterpretCommand, INotifyServerStart, INotifyServerEmpty, IClientJoined
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ClientJoined() публичный Метод

public ClientJoined ( Server server, Connection conn ) : void
server OpenRA.Server.Server
conn OpenRA.Server.Connection
Результат void

InterpretCommand() публичный Метод

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
Результат bool

LoadMapSettings() публичный статический Метод

public static LoadMapSettings ( Server server, Session gs, Ruleset rules ) : void
server OpenRA.Server.Server
gs OpenRA.Network.Session
rules Ruleset
Результат void

PlayerReferenceForSlot() публичный Метод

public PlayerReferenceForSlot ( Server server, Session slot ) : PlayerReference
server OpenRA.Server.Server
slot OpenRA.Network.Session
Результат PlayerReference

ServerStarted() публичный Метод

public ServerStarted ( Server server ) : void
server OpenRA.Server.Server
Результат void

ValidateCommand() публичный статический Метод

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
Результат bool