C# Класс Project290.GameElements.GameWorld

This is the main public class for the game, which is the first thing initiallized, and it the ultimate controller of everything that is going on. Although this is originally made as an instanced object, all of the variables are static (which is okay, as there will only ever be 1 of these existing at a time). Thus, just say GameWorld.variable from anywhere to get easy access to that variable.
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект Примеры использования класса

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

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

Exits the game.

GameWorld ( ) : System

Initializes a new instance of the GameWorld class.

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

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

Reference page contains code sample.

Initialize ( ) : void

Called after the Game and GraphicsDevice are created, but before LoadContent. Reference page contains code sample.

LoadContent ( ) : void

Loads the sprites and audio.

Update ( GameTime gameTime ) : void

Reference page contains links to related conceptual articles.

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

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

Forces at least one player to be signed in at all times

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

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

Reference page contains code sample.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time passed since the last call to Draw.
Результат void

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

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

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

Initializes a new instance of the GameWorld class.
public GameWorld ( ) : System
Результат System

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

Called after the Game and GraphicsDevice are created, but before LoadContent. Reference page contains code sample.
protected Initialize ( ) : void
Результат void

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

Loads the sprites and audio.
protected LoadContent ( ) : void
Результат void

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

Reference page contains links to related conceptual articles.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time passed since the last call to Update.
Результат void