示例#1
0
 public void Tick(double delta)
 {
     ops += delta;
     if (ops > 1)
     {
         ops = 0;
         OncePerSecondActions();
     }
     Schedule.RunAllSyncTasks(delta);
     MainRegion.Tick(delta);
 }
示例#2
0
文件: World.cs 项目: MoTo1496/Voxalia
 /// <summary>
 /// Ticks the world and all regions.
 /// Called automatically by the standard run thread.
 /// </summary>
 /// <param name="delta">How much time has passed since the last tick.</param>
 public void Tick(double delta)
 {
     tpsc++;
     Delta           = delta;
     GlobalTickTime += delta;
     ops            += delta;
     if (ops > 1)
     {
         ops = 0;
         OncePerSecondActions();
     }
     Schedule.RunAllSyncTasks(delta);
     MainRegion.Tick();
 }