Метод | Описание | |
---|---|---|
Chomp ( string str ) : string |
Returns a string with one less character at the end
|
|
Clear ( ) : void |
Clears the output.
|
|
ClearHistory ( ) : void |
Clears the command history.
|
|
Draw ( |
Draws the console
|
|
DrawCursor ( double now ) : string |
Used to draw the cursor
|
|
IsOpen ( ) : bool |
Is this console open?
|
|
Open ( ) : void |
Opens the console
|
|
Prompt ( string str, InputHandler callback ) : void |
Prompts for input asynchronously via callback
|
|
Render ( string output ) : List |
Renders a list of strings to the console
|
|
Update ( |
Updates
|
|
Write ( string str ) : void |
Write to the console
|
|
WriteLine ( string str ) : void |
Write a line to the console
|
|
XnaConsoleComponent ( Microsoft.Xna.Framework.Game game, |
Initializes a new instance of the class, which creates a console for executing commands while running a game.
|
Метод | Описание | |
---|---|---|
GetStringFromKeyState ( double elapsedTime ) : string |
Takes keyboard input and returns certain characters as a string
|
|
IsKeyPressed ( Keys key ) : bool | ||
KeyPressWithRepeat ( Keys key, double elapsedTime ) : bool | ||
WrapLine ( string line, int columns ) : List |
This takes a single string and splits it at the newlines and the specified number of columns
|
|
WrapLines ( string lines, int columns ) : List |
This takes an array of strings and splits each of them every newline and specified number of columns
|
public Chomp ( string str ) : string | ||
str | string | String to chomp |
Результат | string |
public Draw ( |
||
gameTime | gameTime | |
Результат | void |
public DrawCursor ( double now ) : string | ||
now | double | Current time |
Результат | string |
public Prompt ( string str, InputHandler callback ) : void | ||
str | string | |
callback | InputHandler | |
Результат | void |
public Render ( string output ) : List |
||
output | string | String to render |
Результат | List |
public Update ( |
||
gameTime | Not Sure | |
Результат | void |
public XnaConsoleComponent ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | |
font | ||
Результат | System |