public void Update(Camera camera, float elapsed) { if (SyncTimer.IsElapsed(elapsed)) { ReturnContent.Synchronise(); } HandleInputs(camera, elapsed); Network.Update(); WorldContent.Synchronise(); ClientContent.Synchronise(); foreach (SyncHandle handle in WorldContent.NewHandles) { if (handle.Obj is MapRoom room) { Grid.AddRoom(room); } } foreach (SyncHandle handle in WorldContent.RemovedHandles) { if (handle.Obj is MapRoom room) { Grid.RemoveRoom(room); } } foreach (SyncHandle handle in ClientContent.NewHandles) { if (handle.Obj is ClientInfo info) { ClientInfo = info; } } }