Пример #1
0
 internal static void Initialize()
 {
     Exceptions.Initialize();
     Devices.Initialize();
     Players.Initialize();
     Resources.Clans      = new Clans();
     Resources.GChat      = new Global_Chat();
     Resources.Battles    = new Battles();
     Resources.Battles_V2 = new Battles_V2();
     Resources.Classes    = new Classes();
     Resources.Random     = new Random(DateTime.UtcNow.ToString().GetHashCode());
     Resources.Region     = new Region();
     Resources.PRegion    = new Player_Region();
     Gateway.Initialize();
     Gateway.Listen();
     Resources.Api    = new WebApi();
     Resources.Parser = new Parser();
 }
Пример #2
0
 internal static void Initialize()
 {
     ExceptionLogger.Initialize();
     Devices.Initialize();
     Players.Initialize();
     Resources.Clans      = new Clans();
     Resources.GChat      = new Global_Chat();
     Resources.Battles    = new Battles();
     Resources.Battles_V2 = new Battles_V2();
     Resources.Classes    = new Classes();
     Resources.Random     = new Random(DateTime.UtcNow.ToString().GetHashCode());
     Resources.Region     = new Region();
     Resources.PRegion    = new Player_Region();
     Gateway.Initialize();
     Gateway.Listen();;
     Resources.Parser = new Parser();
     if (Constants.UseDiscord)
     {
         Client.Initialize();
     }
 }