axiosengine 

AxiosCommandConsole


Table of Contents

Info about Axios Command Console

AxiosCommandConsole

AxiosCommandConsole is a sample class to make XNACC easy to use with Axios.

Windows

The CommandConsole won't work on WP7/Xbox 360 (currently, this may change in the future) and thus require #if WINDOWS if you are developing crossplatform games. The following is an example of how to get it into your game.

Sample code:

Inside of your activate method use the following code too attach to that screen:

#if WINDOWS
            GameConsole.attachConsole(this);
#endif

Restricting commands

Inside of the constructor add whatever commands you want to remove to the RestrictedCommands list. Example:

        public GameConsole(AxiosGameScreen gameScreen)
            : base(gameScreen)
        {
            RestrictedCommands.AddRange(new string[] {"help"});
        }

Created: 10 years 4 days ago
by Natalie Adams

Updated: 9 years 11 months ago
by Natalie Adams

Old Revisions

Page rendered in 0.02312s using 25 queries.