C# Class MonoGameConsole.Renderer

ファイルを表示 Open project: romanov/MonoGame-Console Class Usage Examples

Private Properties

Property Type Description
DrawCommand Vector2
DrawCommands Vector2
DrawCursor void
DrawPrompt Vector2
DrawRoundedEdges void
IsInBounds bool
SplitCommand IEnumerable
ValidateFirstCommandPosition void

Public Methods

Method Description
Close ( ) : void
Draw ( GameTime gameTime ) : void
Open ( ) : void
Renderer ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, InputProcessor inputProcessor ) : System
Update ( GameTime gameTime ) : void

Private Methods

Method Description
DrawCommand ( string command, Vector2 pos, Color color ) : Vector2

Draws the specified command and returns the position of the next command to be drawn

DrawCommands ( IEnumerable lines, Vector2 pos ) : Vector2

Draws the specified collection of commands and returns the position of the next command to be drawn

DrawCursor ( Vector2 pos, GameTime gameTime ) : void
DrawPrompt ( Vector2 pos ) : Vector2

Draws the prompt at the specified position and returns the position of the text that will be drawn next to it

DrawRoundedEdges ( ) : void
IsInBounds ( float yPosition ) : bool
SplitCommand ( string command, int max ) : IEnumerable
ValidateFirstCommandPosition ( float nextCommandY ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Open() public method

public Open ( ) : void
return void

Renderer() public method

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

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void