예제 #1
0
        public static void ReloadTimers()
        {
            if (timers != null)
            {
                timers.Dispose();
            }

            double save = Double.Parse(Config.GetValue("Config", "saveInterval"));
            double ads  = Double.Parse(Config.GetValue("Config", "broadcastInterval"));

            timers = new ServerTimers(save, ads);
            timers.Start();
        }
예제 #2
0
파일: Bootstrap.cs 프로젝트: Notulp/Pluton
        public static void ReloadTimers()
        {
            if (timers != null)
                timers.Dispose();

            var saver = Config.GetInstance().GetValue("Config", "saveInterval", "180000");
            if (saver != null) {
                double save = Double.Parse(saver);

                timers = new ServerTimers(save);
                timers.Start();
            }
        }
예제 #3
0
        public static void ReloadTimers()
        {
            if (timers != null)
            {
                timers.Dispose();
            }

            var saver = Config.GetInstance().GetValue("Config", "saveInterval", "180000");

            if (saver != null)
            {
                double save = Double.Parse(saver);

                timers = new ServerTimers(save);
                timers.Start();
            }
        }
예제 #4
0
        public static void ReloadTimers()
        {
            if (timers != null)
            {
                timers.Dispose();
            }

            var saver     = Config.GetInstance().GetValue("Config", "saveInterval", "180000");
            var broadcast = Config.GetInstance().GetValue("Config", "broadcastInterval", "600000");

            if (saver != null && broadcast != null)
            {
                double save = Double.Parse(saver);
                double ads  = Double.Parse(broadcast);

                timers = new ServerTimers(save, ads);
                timers.Start();
            }
        }
예제 #5
0
        /// <summary>
        /// Initializes the <see cref="Loader"/> class.
        /// </summary>
        internal static void Init()
        {
            if (Loader.Initialized)
            {
                return;
            }

            Loader.Random = new LogicRandom();

            LogicCommandManager.Init();
            MessageManager.Init();

            Fingerprint.Init();
            CSV.Init();
            Globals.Init();

            if (Settings.Database == DBMS.Mongo)
            {
                Mongo.Init();
            }

            Connections.Init();
            Avatars.Init();
            Alliances.Init();
            Battles.Init();

            ServerConnection.Init();
            APIHandler.Init();

            ServerTimers.Init();

            Loader.Initialized = true;

            EventsHandler.Init();
            Tests.Init();
        }