C# Class FSO.Client.TSOGame

This is the main type for your game
Inheritance: FSO.Common.Rendering.Framework.Game
ファイルを表示 Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
SceneMgr FSO.Common.Rendering.Framework._3DLayer
uiLayer FSO.Client.UI.UILayer

Public Methods

Method Description
AddTextInput ( ) : void

Only used on desktop targets. Use extensive reflection to AVOID linking on iOS!

LostFocus ( object sender, EventArgs e ) : void
RegainFocus ( object sender, EventArgs e ) : void
TSOGame ( ) : System

Protected Methods

Method Description
Initialize ( ) : 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.

UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

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

Method Details

AddTextInput() public method

Only used on desktop targets. Use extensive reflection to AVOID linking on iOS!
public AddTextInput ( ) : void
return void

Initialize() protected method

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.
protected Initialize ( ) : void
return void

LoadContent() protected method

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
return void

LostFocus() public method

public LostFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RegainFocus() public method

public RegainFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

TSOGame() public method

public TSOGame ( ) : System
return System

UnloadContent() protected method

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
return void

Update() protected method

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Property Details

SceneMgr public_oe property

public _3DLayer,FSO.Common.Rendering.Framework SceneMgr
return FSO.Common.Rendering.Framework._3DLayer

uiLayer public_oe property

public UILayer,FSO.Client.UI uiLayer
return FSO.Client.UI.UILayer