C# Класс Sharpex2D.Game

Наследование: IUpdateable, IDrawable, IConstructable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Exit ( ) : void

Exits the game.

OnActivation ( ) : void

Processes if the surface is activated.

OnDeactivation ( ) : void

Processes if the surface is deactivated.

OnDrawing ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Processes a Render.

OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration

Processes the Game initialization.

OnLoadContent ( ) : void

Processes the Game load.

OnUnload ( ) : void

Processes the Game unload.

OnUpdate ( GameTime gameTime ) : void

Updates the object.

Restart ( LaunchParameters launchParameters ) : void

Restarts the Game with the specified LaunchParameters.

Защищенные методы

Метод Описание
Game ( ) : System

Initializes a new Game class.

Приватные методы

Метод Описание
IConstructable ( ) : void

Constructs the component.

IDrawable ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Processes a Render.

IUpdateable ( GameTime gameTime ) : void

Updates the object.

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

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

Exits the game.
public Exit ( ) : void
Результат void

Game() защищенный Метод

Initializes a new Game class.
protected Game ( ) : System
Результат System

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

Processes if the surface is activated.
public OnActivation ( ) : void
Результат void

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

Processes if the surface is deactivated.
public OnDeactivation ( ) : void
Результат void

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

Processes a Render.
public OnDrawing ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The SpriteBatch.
gameTime GameTime The GameTime.
Результат void

OnInitialize() публичный абстрактный Метод

Processes the Game initialization.
public abstract OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
Результат EngineConfiguration

OnLoadContent() публичный абстрактный Метод

Processes the Game load.
public abstract OnLoadContent ( ) : void
Результат void

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

Processes the Game unload.
public OnUnload ( ) : void
Результат void

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

Updates the object.
public OnUpdate ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
Результат void

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

Restarts the Game with the specified LaunchParameters.
public Restart ( LaunchParameters launchParameters ) : void
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
Результат void