Example #1
0
 public static void CoreTickLoop() //The core integrity that makes the server do its things
 {
     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
     };
     logic.Start();
     network.Start();
     Thread.CurrentThread.Join(); //causes problems, may be a problem along with CoreTickLoop in program.cs
     GC.Collect();                //After threads are initialized, dispose any bad memory
 }
Example #2
0
 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
     };
     logic.Start();
     network.Start();
     Thread.CurrentThread.Join(); //causes problems, may be a problem along with CoreTickLoop in program.cs
     GC.Collect();
 }