메소드 | 설명 | |
---|---|---|
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 Draw ( |
||
gameTime | gameTime | |
리턴 | void |
public Prompt ( string str, InputHandler callback ) : void | ||
str | string | |
callback | InputHandler | |
리턴 | void |
public Update ( |
||
gameTime | Not Sure | |
리턴 | void |
public XnaConsoleComponent ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | |
font | ||
리턴 | System |