C# Класс tdsm.core.ServerCore.SlotManager

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
MaxPlayersDisabled bool

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

Метод Описание
ChangeLimits ( int newMaxSlots, int newOverlimitSlots ) : int
FreeSlot ( int id ) : void
HandoverSlot ( IPlayerConnection src, ClientConnection dst ) : bool
Initialize ( int maxSlots, int overlimitSlots ) : void
IsPrivileged ( int id ) : bool
RemoveFromQueues ( ClientConnection conn ) : void
Schedule ( ClientConnection conn, int priority ) : int

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

Метод Описание
AssignSlot ( ClientConnection conn, int id ) : bool
AssignSlotOrQueue ( ClientConnection conn, int queue ) : int
FindForSlot ( int id ) : ClientConnection
MaxPlayersCommand ( ISender sender, ArgumentList args ) : void
PushSlot ( int id ) : void
QCommand ( ISender sender, ArgumentList args ) : void
WaitingMessage ( ClientConnection conn ) : string

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

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

public static ChangeLimits ( int newMaxSlots, int newOverlimitSlots ) : int
newMaxSlots int
newOverlimitSlots int
Результат int

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

public static FreeSlot ( int id ) : void
id int
Результат void

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

public static HandoverSlot ( IPlayerConnection src, ClientConnection dst ) : bool
src IPlayerConnection
dst ClientConnection
Результат bool

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

public static Initialize ( int maxSlots, int overlimitSlots ) : void
maxSlots int
overlimitSlots int
Результат void

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

public static IsPrivileged ( int id ) : bool
id int
Результат bool

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

public static RemoveFromQueues ( ClientConnection conn ) : void
conn ClientConnection
Результат void

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

public static Schedule ( ClientConnection conn, int priority ) : int
conn ClientConnection
priority int
Результат int

Описание свойств

MaxPlayersDisabled публичное статическое свойство

public static bool MaxPlayersDisabled
Результат bool