C# Класс MrGravity.Menu_Code.MainMenu

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
GetInnerRegion ( ) : Rectangle

Gets the rectangle between the menu options

GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
MainMenu ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System
Update ( GameTime gametime, GameStates &states, Level mainMenuLevel ) : void

Описание методов

Draw() публичный Метод

public Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
gametime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
scale Matrix
Результат void

GetInnerRegion() публичный Метод

Gets the rectangle between the menu options
public GetInnerRegion ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle

GetRegion() публичный Метод

public GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
choice MenuChoices
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат Microsoft.Xna.Framework.Rectangle

Load() публичный Метод

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Результат void

MainMenu() публичный Метод

public MainMenu ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System
controlScheme IControlScheme
graphics GraphicsDeviceManager
Результат System

Update() публичный Метод

public Update ( GameTime gametime, GameStates &states, Level mainMenuLevel ) : void
gametime Microsoft.Xna.Framework.GameTime
states GameStates
mainMenuLevel Level
Результат void