示例#1
0
        /// <summary>
        /// Loads the content needed for the game.
        /// </summary>
        protected override void LoadContent()
        {
            var font = Content.Load <SpriteFont>(@"mfont");

            spriteFont       = font;
            console          = new MpqConsole(this, font);
            console.MyEvent += DoCommand;

            spriteBatch = new SpriteBatch(GraphicsDevice);
        }
示例#2
0
文件: Game1.cs 项目: WoW-Tools/mpqnav
        /// <summary>
        /// Loads the content needed for the game.
        /// </summary>
        protected override void LoadContent()
        {
            var font = Content.Load<SpriteFont>(@"mfont");
            spriteFont = font;
            console = new MpqConsole(this, font);
            console.MyEvent += DoCommand;

            spriteBatch = new SpriteBatch(GraphicsDevice);
        }