/// <summary> /// Constructor /// </summary> public Game() { // Check for new version AutoUpdater.CheckForNewVersion("http://www.dungeoneye.net/updater.xml"); // Settings Settings.Load("data/settings.xml"); InputSchemeName = Settings.GetString("inputscheme"); LanguageName = Settings.GetString("language"); AudioManager.PlayTunes = Settings.GetBool("Tunes"); AudioManager.PlaySounds = Settings.GetBool("Sounds"); // Add the assets ResourceManager.RegisterAsset <Dungeon>(typeof(DungeonForm)); ResourceManager.RegisterAsset <Item>(typeof(ItemForm)); ResourceManager.RegisterAsset <Monster>(typeof(MonsterForm)); ResourceManager.RegisterAsset <DecorationSet>(typeof(DecorationSetForm)); ResourceManager.RegisterAsset <Spell>(typeof(SpellForm)); ResourceManager.RegisterAsset <Hero>(typeof(HeroForm)); // Game state manager GSM = new ScreenManager(this); // Audio AudioManager.Create(); // HACK : Editor events EditorEnter += new EditorEventHandler(Game_EditorEnter); }