//------------------------------------------------------------------------------------- // Constructors public GameHost() { // Create new collections Textures = new Dictionary <string, Texture2D>(); Fonts = new Dictionary <string, SpriteFont>(); Models = new Dictionary <string, Model>(); GameObjects = new List <GameObjectBase>(); SoundEffects = new Dictionary <string, SoundEffect>(); Songs = new Dictionary <string, Song>(); // Create other objects SettingsManager.Game = this; HighScores = new HighScores(this); }
//------------------------------------------------------------------------------------- // Constructors public GameHost() { // Create new collections Textures = new Dictionary <string, Texture2D>(); Fonts = new Dictionary <string, SpriteFont>(); Models = new Dictionary <string, Model>(); GameObjects = new List <GameObjectBase>(); SoundEffects = new Dictionary <string, SoundEffect>(); Songs = new Dictionary <string, Song>(); // Create other objects SettingsManager.Game = this; HighScores = new HighScores(this); #if NETFX_CORE // Get a reference to the Windows 8 game window _window = Windows.UI.Core.CoreWindow.GetForCurrentThread(); #endif }