コード例 #1
0
ファイル: FenrirGame.cs プロジェクト: XF9/Fenrir
        /// <summary>
        /// initialize verything
        /// required to run this
        /// </summary>
        /// <param name="contentManager">the XNA content Manager</param>
        /// <param name="graphicDeviceManager">the XNA graphic manager</param>
        /// /// <param name="displayModes">possible display modes</param>
        public void Run(Microsoft.Xna.Framework.Content.ContentManager contentManager, Microsoft.Xna.Framework.GraphicsDeviceManager graphicDeviceManager, Microsoft.Xna.Framework.GameWindow window, Microsoft.Xna.Framework.Game game)
        {
            this.Properties = new GameProperties(contentManager, graphicDeviceManager, window);

            // load bare media to initialize loadingscreen
            // Cursor textures
            FenrirGame.Instance.Properties.ContentManager.AddTextureToLibrary(DataIdentifier.textureCursorRegular, "Texture/Cursor/Default");
            FenrirGame.Instance.Properties.ContentManager.AddTextureToLibrary(DataIdentifier.textureCursorCamera, "Texture/Cursor/Camera");

            this.game = game;

            this.renderer = new Renderer();

            this.cursor = new Cursor();

            this.menuLoader = new LoadingScreen.LoadMenu();
            this.gameLoader = new LoadingScreen.LoadGame();
        }
コード例 #2
0
ファイル: FenrirGame.cs プロジェクト: XF9/Fenrir
        /// <summary>
        /// initialize verything
        /// required to run this
        /// </summary>
        /// <param name="contentManager">the XNA content Manager</param>
        /// <param name="graphicDeviceManager">the XNA graphic manager</param>
        /// /// <param name="displayModes">possible display modes</param>
        public void Run(Microsoft.Xna.Framework.Content.ContentManager contentManager, Microsoft.Xna.Framework.GraphicsDeviceManager graphicDeviceManager, Microsoft.Xna.Framework.GameWindow window, Microsoft.Xna.Framework.Game game)
        {
            this.Properties = new GameProperties(contentManager, graphicDeviceManager, window);

            // load bare media to initialize loadingscreen
            // Cursor textures
            FenrirGame.Instance.Properties.ContentManager.AddTextureToLibrary(DataIdentifier.textureCursorRegular, "Texture/Cursor/Default");
            FenrirGame.Instance.Properties.ContentManager.AddTextureToLibrary(DataIdentifier.textureCursorCamera, "Texture/Cursor/Camera");

            this.game = game;

            this.renderer = new Renderer();

            this.cursor = new Cursor();

            this.menuLoader = new LoadingScreen.LoadMenu();
            this.gameLoader = new LoadingScreen.LoadGame();
        }