(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// MonoGame - Copyright (C) The MonoGame Team
|
||||
// This file is subject to the terms and conditions defined in
|
||||
// file 'LICENSE.txt', which is part of this source code package.
|
||||
|
||||
using System;
|
||||
using Microsoft.Xna.Framework.Audio;
|
||||
|
||||
namespace Microsoft.Xna.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper class for processing internal framework events.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If you use <see cref="Game"/> class, <see cref="Update()"/> is called automatically.
|
||||
/// Otherwise you must call it as part of your game loop.
|
||||
/// </remarks>
|
||||
public static class FrameworkDispatcher
|
||||
{
|
||||
private static bool _initialized = false;
|
||||
|
||||
/// <summary>
|
||||
/// Processes framework events.
|
||||
/// </summary>
|
||||
public static void Update()
|
||||
{
|
||||
if (!_initialized)
|
||||
Initialize();
|
||||
|
||||
DoUpdate();
|
||||
}
|
||||
|
||||
private static void DoUpdate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private static void Initialize()
|
||||
{
|
||||
_initialized = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user