Exemplo n.º 1
0
 public Task ClientTickSyncLoop()
 {
     return(Task.Run(async() =>
     {
         while (Session != null)
         {
             Session.Send(RequestPacket.TickSync());
             await Task.Delay(300 * 1000); // every 5 minutes
         }
     }));
 }
Exemplo n.º 2
0
 public void SyncTicks()
 {
     ServerTick = Environment.TickCount;
     Send(RequestPacket.TickSync(ServerTick));
 }