/// <inheritdoc />
/// <summary>
/// Allows the game to run logic such as updating the world,
/// checking for collisions, gathering input, and playing audio.
/// </summary>
protected override void Update(GameTime gameTime)
{
if (!IsReadyToUpdate)
{
return;
}
base.Update(gameTime);
if (SteamManager.IsInitialized)
{
SteamAPI.RunCallbacks();
}
// Run scheduled background tasks
CommonTaskScheduler.Run();
BackgroundManager.Update(gameTime);
BackgroundHelper.Update(gameTime);
NotificationManager.Update(gameTime);
ChatManager.Update(gameTime);
DialogManager.Update(gameTime);
HandleGlobalInput(gameTime);
QuaverScreenManager.Update(gameTime);
Transitioner.Update(gameTime);
SkinManager.HandleSkinReloading();
LimitFpsOnInactiveWindow();
}