Adding AxiosCommandConsole for easy intergration with AxiosGameScreens

Adding the ability to get the InputState object from the ScreenManager

--HG--
branch : xnacc-integration
This commit is contained in:
Nathan Adams
2012-05-26 18:50:49 -05:00
parent e9e97dae39
commit 13857f324d
5 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#if WINDOWS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNACC.Console;
using Microsoft.Xna.Framework.Graphics;
namespace Axios.Engine
{
class AxiosCommandConsole : CommandConsoleBase
{
public AxiosCommandConsole(AxiosGameScreen gameScreen)
: base(gameScreen.ScreenManager.Game)
{
Keyboard = gameScreen.ScreenManager.InputState;
}
public AxiosCommandConsole(AxiosGameScreen gameScreen, SpriteFont font)
: base(gameScreen.ScreenManager.Game, font)
{
Keyboard = gameScreen.ScreenManager.InputState;
}
}
}
#endif