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