/// <summary> /// Initializes a new instance of the <see cref="Resources"/> class. /// </summary> internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); Factory.Initialize(); CSV.Initialize(); Home.Initialize(); Fingerprint.Initialize(); if (Constants.Database == DBMS.Mongo) { Mongo.Initialize(); } Resources.Redis = new Redis(); Resources.Players = new Players(); Resources.Random = new XorShift(); Resources.TCPGateway = new TCPServer(); Resources.UDPGateway = new UDPServer(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); }
//internal static EventsHandler Events; public static void Initialize() { Z.EntityFramework.Extensions.LicenseManager.AddLicense("1294;103-aididhaiqal02", "d8a78218-810c-f032-ae9d-0f8257e4501c"); // Initialize our stuff. CSV.Initialize(); Game_Events.Initialize(); Home.Initialize(); NPC.Initialize(); Fingerprint.Initialize(); ResourcesManager.Initialize(); ObjectManager.Initialize(); Logger.Initialize(); ExceptionLogger.Initialize(); Gateway.Initialize(); Timers.Initialize(); Timers.Run(); // Start listening since we're done initializing. Gateway.Listen(); if (Constants.UseDiscord) { Client.Initialize(); } //Events = new EventsHandler(); Parser.Initialize(); }
public static void Initialize() { // Initialize our stuff. CSV.Initialize(); Game_Events.Initialize(); Deck.Initialize(); Files.Cards.Initialize(); Fingerprint.Initialize(); Arenas.Initialize(); Rarities.Initialize(); Logic.Structure.Game.Cards.Initialize(); Chests.Initialize(); ResourcesManager.Initialize(); ObjectManager.Initialize(); Logger.Initialize(); ExceptionLogger.Initialize(); Gateway.Initialize(); Timers.Initialize(); Timers.Run(); // Start listening since we're done initializing. Gateway.Listen(); if (Constants.UseDiscord) { Client.Initialize(); } Events = new EventsHandler(); }
/// <summary> /// Initializes a new instance of the <see cref="Resources"/> class. /// </summary> internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); Factory.Initialize(); CSV.Initialize(); Home.Initialize(); Fingerprint.Initialize(); GameDatas.Initialize(); Resources.Gametools = new GameTools(); Resources.Redis = new Redis(); Resources.Players = new Players(); Resources.Clans = new Clans(); Resources.Battles = new Battles(); Resources.Random = new XorShift(); Resources.TCPGateway = new TCPServer(); Resources.UDPGateway = new UDPServer(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); }
/// <summary> /// Initializes this instance. /// </summary> public static void Initialize() { if (Base.Initialized) { return; } // Sentry.Initialize(); XorShift.Initialize(); ScFiles.Initialize(); CsvFiles.Initialize(); SoundFiles.Initialize(); Fingerprint.Initialize(); Home.Initialize(); Globals.Initialize(); ClientGlobals.Initialize(); MessageFactory.Initialize(); IpRequester.Initialize(); Tests.Initialize(); Base.Initialized = true;; }
/// <summary> /// Initializes a new instance of the <see cref="Resources"/> class. /// </summary> internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); Factory.Initialize(); CSV.Initialize(); LevelFile.Initialize(); Fingerprint.Initialize(); Globals.Initialize(); if (Constants.Database == DBMS.Mongo) { Mongo.Initialize(); } Resources.Redis = new Redis(); Resources.Regex = new Regex("[ ]{2,}", RegexOptions.Compiled); Resources.Players = new Players(); Resources.Clans = new Clans(); Resources.Chats = new Chats(); Resources.Battles = new Battles(); Resources.Random = new XorShift(); Resources.TCPGateway = new TCPServer(); Resources.UDPGateway = new UDPServer(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Resources"/> class. /// </summary> internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); CSV.Initialize(); Home.Initialize(); Factory.Initialize(); Globals.Initialize(); Fingerprint.Initialize(); Resources.TCPGateway = new TCPServer(); Resources.UDPGateway = new UDPServer(); Resources.Database = new MySqlDatabase(); Resources.CacheSystem = new RedisDatabase(); Resources.Players = new Players(); Resources.Clans = new Clans(); Resources.Random = new XorShift(); Resources.BattleManager = new BattleManager(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); Timers.Initialize(); }
internal static void Initialize() { MessageFactory.Initialize(); CSV.Initialize(); Home.Initialize(); NPC.Initialize(); Fingerprint.Initialize(); MySQL_V2.GetAllSeed(); }
internal static void Initialize() { Resources.Logger = LogManager.GetCurrentClassLogger(typeof(Resources)); Factory.Initialize(); CSV.Initialize(); LevelFile.Initialize(); GameEvents.Initialize(); Globals.Initialize(); Settings.Initialize(); Fingerprint.Initialize(); if (Constants.Database == DBMS.Mongo) { Mongo.Initialize(); } Resources.Regex = new Regex("[ ]{2,}", RegexOptions.Compiled); Resources.Name = new Regex("^[a-zA-Z0-9- ]*$"); Resources.Processor = new Processor(); Resources.Devices = new Devices(); Resources.Accounts = new Accounts(); Resources.Battles = new Battles(); Resources.Clans = new Clans(); Resources.Chats = new Chats(); Resources.Duels = new Duels(); Resources.Random2 = new System.Random(DateTime.UtcNow.ToString().GetHashCode()); Resources.Random = new XorShift(); Resources.Gateway = new Gateway(); Resources.StartTime = DateTime.UtcNow; Resources.Timers = new Timers(); Resources.Started = true; Parser.Initialize(); EventsHandler.Initialize(); Console.WriteLine("We loaded " + Factory.Messages.Count + " messages, " + Factory.Commands.Count + " commands, and " + Factory.Debugs.Count + " debug commands.\n"); #if Debug Resources.Test = new Test(); #endif }