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."); }
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 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(); }