Пример #1
0
        public Loader()
        {
            // CSV Files and Logger
            this.Logger           = new Logger();
            this.DirectoryChecker = new DirectoryChecker();
            this.CsvManager       = new CSVManager();

            this.ConnectionBlocker = new ConnectionBlocker();
            if (Utils.ParseConfigBoolean("UseWebAPI"))
            {
                this.API = new API();
            }


            // Core
            this.LicenseChecker   = new LicenseChecker();
            this.ResourcesManager = new ResourcesManager();
            this.ObjectManager    = new ObjectManager();
            this.Events           = new EventsHandler();
            if (Constants.UseCacheServer)
            {
                this.Redis = new Redis();
            }


            this.CommandFactory = new CommandFactory();

            this.MessageFactory = new MessageFactory();

            // Optimazions
            this.MemThread = new MemoryThread();

            // User
            this.Parser = new ParserThread();
        }
Пример #2
0
        public Loader()
        {
            // CSV Files and Logger
            Logger           = new Logger();
            DirectoryChecker = new DirectoryChecker();
            Csv      = new CSVManager();
            Settings = new Settings.Settings();

            if (Utils.ParseConfigBoolean("UseWebAPI"))
            {
                API = new API();
            }

            //Core
            ResourcesManager = new ResourcesManager();
            ObjectManager    = new ObjectManager();
            Events           = new EventsHandler();
            if (Constants.UseCacheServer)
            {
                Redis = new Redis();
            }

            CommandFactory = new CommandFactory();
            MessageFactory = new MessageFactory();

            // Optimazions
            MemThread = new MemoryThread();

            // User
            Parser = new ParserThread();
        }
Пример #3
0
        public Loader()
        {
            // License Check
            //_LicenseChecker    = new LicenseChecker();

            // CSV Files and Logger
            _Logger = new Logger();

            _DirectoryChecker = new DirectoryChecker();

            _CSVManager = new CSVManager();


            // Network and Packets
            _ChatProcessor = new ChatProcessor();

            _ConnectionBlocker = new ConnectionBlocker();

            if (Utils.ParseConfigBoolean("UseWebAPI"))
            {
                _API = new API();
            }

            // Core
            _ResourcesManager = new ResourcesManager();

            _ObjectManager = new ObjectManager();

            _CommandFactory = new CommandFactory();

            _MessageFactory = new MessageFactory();

            // Optimazions
            _MemThread = new MemoryThread();

            // User
            _Parser = new ParserThread();

            // Creates a new Socket
            _Gateway = new Gateway();
        }