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:
26
axios/Engine/AxiosCommandConsole.cs
Normal file
26
axios/Engine/AxiosCommandConsole.cs
Normal 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
|
Reference in New Issue
Block a user