// 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 { /// /// Helper class for processing internal framework events. /// /// /// If you use class, is called automatically. /// Otherwise you must call it as part of your game loop. /// public static class FrameworkDispatcher { private static bool _initialized = false; /// /// Processes framework events. /// public static void Update() { if (!_initialized) Initialize(); DoUpdate(); } private static void DoUpdate() { } private static void Initialize() { _initialized = true; } } }