C# Class FSO.Client.GameFacade

Central point for accessing game objects
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
CDataRetriever FSO.Client.Rendering.City.CityDataRetriever
CacheDirectory string
CacheRoot string
Controller GameController
Cursor FSO.Common.Rendering.Framework.CursorManager
DirectX bool
EdithFont FSO.Client.UI.Framework.Font
Focus bool
Game TSOGame
GameThread Thread
GraphicsDevice GraphicsDevice
GraphicsDeviceManager GraphicsDeviceManager
LastUpdateState FSO.Common.Rendering.Framework.Model.UpdateState
Linux bool
MainFont FSO.Client.UI.Framework.Font
MessageController FSO.Client.UI.Panels.UIMessageController
Scenes FSO.Common.Rendering.Framework._3DLayer
Screens FSO.Client.UI.UILayer
Strings FSO.Client.GameContent.ContentStrings

Public Methods

Method Description
GameFilePath ( string relativePath ) : string
GetCityNumber ( string CityName ) : int

This gets the number of a city when provided with a name.

Init ( ) : void
Kill ( ) : void

Kills the application.

TriggerContentLoaderReady ( ) : void

Method Details

GameFilePath() public static method

public static GameFilePath ( string relativePath ) : string
relativePath string
return string

GetCityNumber() public static method

This gets the number of a city when provided with a name.
public static GetCityNumber ( string CityName ) : int
CityName string Name of the city.
return int

Init() public static method

public static Init ( ) : void
return void

Kill() public static method

Kills the application.
public static Kill ( ) : void
return void

TriggerContentLoaderReady() public static method

public static TriggerContentLoaderReady ( ) : void
return void

Property Details

CDataRetriever public_oe static_oe property

public static CityDataRetriever,FSO.Client.Rendering.City CDataRetriever
return FSO.Client.Rendering.City.CityDataRetriever

CacheDirectory public_oe static_oe property

Place where the game can store cached values, e.g. pre modified textures to improve 2nd load speed, etc.
public static string CacheDirectory
return string

CacheRoot public_oe static_oe property

public static string CacheRoot
return string

Controller public_oe static_oe property

public static GameController,FSO.Client Controller
return GameController

Cursor public_oe static_oe property

public static CursorManager,FSO.Common.Rendering.Framework Cursor
return FSO.Common.Rendering.Framework.CursorManager

DirectX public_oe static_oe property

public static bool DirectX
return bool

EdithFont public_oe static_oe property

public static Font,FSO.Client.UI.Framework EdithFont
return FSO.Client.UI.Framework.Font

Focus public_oe static_oe property

public static bool Focus
return bool

Game public_oe static_oe property

public static TSOGame,FSO.Client Game
return TSOGame

GameThread public_oe static_oe property

public static Thread GameThread
return Thread

GraphicsDevice public_oe static_oe property

public static GraphicsDevice GraphicsDevice
return GraphicsDevice

GraphicsDeviceManager public_oe static_oe property

public static GraphicsDeviceManager GraphicsDeviceManager
return GraphicsDeviceManager

LastUpdateState public_oe static_oe property

public static UpdateState,FSO.Common.Rendering.Framework.Model LastUpdateState
return FSO.Common.Rendering.Framework.Model.UpdateState

Linux public_oe static_oe property

public static bool Linux
return bool

MainFont public_oe static_oe property

public static Font,FSO.Client.UI.Framework MainFont
return FSO.Client.UI.Framework.Font

MessageController public_oe static_oe property

public static UIMessageController,FSO.Client.UI.Panels MessageController
return FSO.Client.UI.Panels.UIMessageController

Scenes public_oe static_oe property

public static _3DLayer,FSO.Common.Rendering.Framework Scenes
return FSO.Common.Rendering.Framework._3DLayer

Screens public_oe static_oe property

public static UILayer,FSO.Client.UI Screens
return FSO.Client.UI.UILayer

Strings public_oe static_oe property

public static ContentStrings,FSO.Client.GameContent Strings
return FSO.Client.GameContent.ContentStrings