public void Run()
 {
     if (CheckConfig.IsDebugOn())
     {
         Console.WriteLine("Starting Realm Manager...");
     }
     Network  = new NetworkTicker(this);
     Logic    = new LogicTicker(this);
     Database = new DatabaseTicker();
     network  = new Thread(Network.TickLoop)
     {
         Name           = "Network",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     logic = new Thread(Logic.TickLoop)
     {
         Name           = "Logic",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     //Start logic loop first
     logic.Start();
     network.Start();
     if (CheckConfig.IsDebugOn())
     {
         Console.WriteLine("Realm Manager started.");
     }
 }
Beispiel #2
0
        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Network = new NetworkTicker(this);
            Logic   = new LogicTicker(this);
            GameDB  = new DatabaseTicker(this);
            Save    = new AutoSave(this);
            network = new Thread(Network.TickLoop)
            {
                Name           = "Network",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic = new Thread(Logic.TickLoop)
            {
                Name           = "Logic",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            save = new Thread(Save.TickLoop)
            {
                Name           = "Save",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            //Start logic loop first
            logic.Start();
            network.Start();
            save.Start();

            log.Info("Realm Manager started.");
        }
Beispiel #3
0
 public static void CoreTickLoop()
 {
     Network = new NetworkTicker();
     Logic   = new LogicTicker();
     network = new Thread(Network.TickLoop);
     logic   = new Thread(Logic.TickLoop);
     //Start logic loop first
     logic.Start();
     network.Start();
     Thread.CurrentThread.Join();
 }
Beispiel #4
0
        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Logic    = new LogicTicker(this);
            Database = new DatabaseTicker();
            logic    = new Thread(Logic.TickLoop)
            {
                Name           = "Logic",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic.Start();

            log.Info("Realm Manager started.");
        }
Beispiel #5
0
        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Network  = new NetworkTicker(this);
            Logic    = new LogicTicker(this);
            Database = new DatabaseTicker(this);

            var logicTask = new Task(() => Logic.TickLoop(), TaskCreationOptions.LongRunning);

            logicTask.Start();

            var networkTask = new Task(() => Network.TickLoop(), TaskCreationOptions.LongRunning);

            networkTask.Start();

            log.Info("Realm Manager started.");
        }
        //public CommandManager Commands { get; private set; }

        public static void CoreTickLoop()
        {
            Network = new NetworkTicker();
            Logic   = new LogicTicker();
            network = new Thread(Network.TickLoop)
            {
                Name           = "Network Process Thread",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic = new Thread(Logic.TickLoop)
            {
                Name           = "Logic Ticking Thread",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            //Start logic loop first
            logic.Start();
            network.Start();
            Thread.CurrentThread.Join();
        }
        //public CommandManager Commands { get; private set; }

        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Network = new NetworkTicker();
            Logic   = new LogicTicker();
            network = new Thread(Network.TickLoop)
            {
                Name           = "Network",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic = new Thread(Logic.TickLoop)
            {
                Name           = "Logic",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            //Start logic loop first
            logic.Start();
            network.Start();

            log.Info("Realm Manager started.");
        }
Beispiel #8
0
        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Network = new NetworkTicker(this);
            Logic   = new LogicTicker(this);
            Data    = new DatabaseTicker(this);
            Save    = new AutoSave(this);
            network = new Thread(Network.TickLoop)
            {
                Name           = "Network Thread",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic = new Thread(Logic.TickLoop)
            {
                Name           = "Logic Thread",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            network.Start();
            logic.Start();
            //save = Task.Factory.StartNew(Save.TickLoop, TaskCreationOptions.LongRunning);

            log.Info("Realm Manager started.");
        }
 //public CommandManager Commands { get; private set; }
 public static void CoreTickLoop()
 {
     Network = new NetworkTicker();
     Logic = new LogicTicker();
     network = new Thread(Network.TickLoop)
     {
         Name = "Network Process Thread",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     logic = new Thread(Logic.TickLoop)
     {
         Name = "Logic Ticking Thread",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     //Start logic loop first
     logic.Start();
     network.Start();
     Thread.CurrentThread.Join();
 }
 public static void CoreTickLoop()
 {
     Network = new NetworkTicker();
     Logic = new LogicTicker();
     network = new Thread(Network.TickLoop);
     logic = new Thread(Logic.TickLoop);
     //Start logic loop first
     logic.Start();
     network.Start();
     Thread.CurrentThread.Join();
 }
        public void Run()
        {
            log.Info("Starting Realm Manager...");

            Network = new NetworkTicker(this);
            Logic = new LogicTicker(this);
            Database = new DatabaseTicker();
            network = new Thread(Network.TickLoop)
            {
                Name = "Network",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            logic = new Thread(Logic.TickLoop)
            {
                Name = "Logic",
                CurrentCulture = CultureInfo.InvariantCulture
            };
            //Start logic loop first
            logic.Start();
            network.Start();

            log.Info("Realm Manager started.");
        }
Beispiel #12
0
 public void Initialize()
 {
     Network = new NetworkTicker(this);
     Logic = new LogicTicker(this);
     network = new Thread(Network.TickLoop)
     {
         Name = "Network Process Thread",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     logic = new Thread(Logic.TickLoop)
     {
         Name = "Logic Ticking Thread",
         CurrentCulture = CultureInfo.InvariantCulture
     };
     //Start logic loop first
     logic.Start();
     network.Start();
 }