C# Класс TugOfBaby.GameInstance

This is the main type for your game
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
Initialize ( GraphicsDevice graphicsDevice ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

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

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

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

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

This is called when the game should draw itself.
public Draw ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Результат void

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

public GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
gfx GraphicsDeviceManager
content Microsoft.Xna.Framework.Content.ContentManager
game Game1
Результат System

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

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
public Initialize ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice
Результат void

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

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( ) : void
Результат void

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

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
public Update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Результат void