C# Class MonoGameConsole.GameConsole

Show file Open project: romanov/MonoGame-Console Class Usage Examples

Public Methods

Method Description
AddCommand ( ) : void

Adds a new command to the console

AddCommand ( string name, string>.Func action ) : void

Adds a new command to the console

AddCommand ( string name, string>.Func action, string description ) : void

Adds a new command to the console

GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, GameConsoleOptions options ) : System
GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, IEnumerable commands ) : System
GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, IEnumerable commands, GameConsoleOptions options ) : System
WriteLine ( string text ) : void

Write directly to the output stream of the console

Method Details

AddCommand() public method

Adds a new command to the console
public AddCommand ( ) : void
return void

AddCommand() public method

Adds a new command to the console
public AddCommand ( string name, string>.Func action ) : void
name string Name of the command
action string>.Func
return void

AddCommand() public method

Adds a new command to the console
public AddCommand ( string name, string>.Func action, string description ) : void
name string Name of the command
action string>.Func
description string
return void

GameConsole() public method

public GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return System

GameConsole() public method

public GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, GameConsoleOptions options ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
options GameConsoleOptions
return System

GameConsole() public method

public GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, IEnumerable commands ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
commands IEnumerable
return System

GameConsole() public method

public GameConsole ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, IEnumerable commands, GameConsoleOptions options ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
commands IEnumerable
options GameConsoleOptions
return System

WriteLine() public method

Write directly to the output stream of the console
public WriteLine ( string text ) : void
text string
return void