internal Classes() { this.MFactory = new MessageFactory(); this.CFactory = new CommandFactory(); this.DFactory = new DebugFactory(); Loggers.Initialize(); Fingerprint = new Fingerprint(); this.CSV = new CSV(); this.Home = new Home(); this.Npc = new NPC(); this.Game_Events = new Game_Events(); this.Fingerprint = new Fingerprint(); switch (Constants.Database) { case DBMS.Redis: case DBMS.Both: this.Redis = new Redis(); break; } this.Events = new EventsHandler(); #if DEBUG Console.WriteLine("We loaded " + MessageFactory.Messages.Count + " messages, " + CommandFactory.Commands.Count + " commands, and " + DebugFactory.Debugs.Count + " debug commands.\n"); #endif this.Timers = new Timers(); this.Test = new Test(); MySQL_V2.GetAllSeed(); }
internal static void Initialize() { MessageFactory.Initialize(); CSV.Initialize(); Home.Initialize(); NPC.Initialize(); Fingerprint.Initialize(); MySQL_V2.GetAllSeed(); }