示例#1
0
 public void PrepareRun()
 {
     currentTick = 0;
     scheduler   = new TickDelayScheduler();
     scheduler.Initialize(currentTick);
     MethodsCalled  = new List <int>();
     CallTimestamps = new List <int>();
 }
示例#2
0
 public void Reinitialize()
 {
     scheduler.ScheduleCallback(Callback1, 1, null, true);
     TickScheduler(3);
     scheduler.Initialize(10);
     TickScheduler(7);
     AssertCalls("1,1,1");
     AssertTimestamps("1,2,3");
 }
 internal void OnGameInitializationStart(Game game)
 {
     try {
         var currentTick = game.tickManager.TicksGame;
         TickDelayScheduler.Initialize(currentTick);
         DistributedTicker.Initialize(currentTick);
         game.tickManager.RegisterAllTickabilityFor(new HugsTickProxy {
             CreatedByController = true
         });
     } catch (Exception e) {
         Logger.ReportException(e);
     }
 }