C# Class Aura.Channel.ChannelServer

Inheritance: ServerMain
Afficher le fichier Open project: aura-project/aura

Méthodes publiques

Свойство Type Description
Instance ChannelServer

Private Properties

Свойство Type Description
ChannelServer Aura.Channel.Database
CurrentDomain_UnhandledException void
InitializeWorld void
KillConnectedClients void
LoadScripts void
LoadSkills void
OnClientDisconnected void
ShutdownTimerDone void
StartStatusUpdateTimer void

Méthodes publiques

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

Private Methods

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

Method Details

CalculateChannelState() public méthode

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
Résultat ChannelState

ConnectToLogin() public méthode

Tries to connect to login server, keeps trying every 10 seconds till there is a success. Blocking.
public ConnectToLogin ( bool firstTime ) : void
firstTime bool
Résultat void

InitDatabase() public méthode

public InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
db Aura.Shared.Database.AuraDb
conf Aura.Shared.Util.Configuration.BaseConf
Résultat void

Run() public méthode

Loads all necessary components and starts the server.
public Run ( ) : void
Résultat void

Shutdown() public méthode

Shutdown procedure for the current channel.
public Shutdown ( int time ) : void
time int The amount of time in seconds until shutdown.
Résultat void

Property Details

Instance public_oe static_oe property

public static ChannelServer,Aura.Channel Instance
Résultat ChannelServer