C# Класс Aura.Channel.ChannelServer

Наследование: ServerMain
Показать файл Открыть проект

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

Свойство Тип Описание
Instance ChannelServer

Private Properties

Свойство Тип Описание
ChannelServer Aura.Channel.Database
CurrentDomain_UnhandledException void
InitializeWorld void
KillConnectedClients void
LoadScripts void
LoadSkills void
OnClientDisconnected void
ShutdownTimerDone void
StartStatusUpdateTimer void

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

Метод Описание
CalculateChannelState ( ) : ChannelState

Calculates the state of the channel.

When calculating the ChannelState we take into account whether the server is running as well as if it is in Maintenance.

ConnectToLogin ( bool firstTime ) : void

Tries to connect to login server, keeps trying every 10 seconds till there is a success. Blocking.

InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
Run ( ) : void

Loads all necessary components and starts the server.

Shutdown ( int time ) : void

Shutdown procedure for the current channel.

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

Метод Описание
ChannelServer ( ) : Aura.Channel.Database
CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Handler for unhandled exceptions.

InitializeWorld ( ) : void
KillConnectedClients ( ) : void

Kills all clients currently connected to the channel.

LoadScripts ( ) : void
LoadSkills ( ) : void
OnClientDisconnected ( ChannelClient client ) : void
ShutdownTimerDone ( object timer ) : void
StartStatusUpdateTimer ( ) : void

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

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

Calculates the state of the channel.
When calculating the ChannelState we take into account whether the server is running as well as if it is in Maintenance.
public CalculateChannelState ( ) : ChannelState
Результат ChannelState

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

Tries to connect to login server, keeps trying every 10 seconds till there is a success. Blocking.
public ConnectToLogin ( bool firstTime ) : void
firstTime bool
Результат void

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

public InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
db Aura.Shared.Database.AuraDb
conf Aura.Shared.Util.Configuration.BaseConf
Результат void

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

Loads all necessary components and starts the server.
public Run ( ) : void
Результат void

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

Shutdown procedure for the current channel.
public Shutdown ( int time ) : void
time int The amount of time in seconds until shutdown.
Результат void

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

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

public static ChannelServer,Aura.Channel Instance
Результат ChannelServer