C# Class Alexandria.AlexandriaManager

Asset manager for Alexandria.
Inheritance: AssetManager
Show file Open project: Burton-Radons/Alexandria Class Usage Examples

Private Properties

Property Type Description
BackgroundOperationThreadStart void
BackgroundOperationUpdateProgress void

Public Methods

Method Description
AddBackgroundOperation ( string name, string description ) : BackgroundOperation

Add a background operation.

AlexandriaManager ( ) : System

Initialise the manager, loading settings.

GetGame ( Type gameType ) : Game

Search for the first Game with the given Type, or return null if not found. An exact match is attempted first, and then the first Game to inherit from the Type is matched.

GetPathState ( Game game, FileManager fileManager, string path ) : PathState

Get a PathState for the given combination of parameters, creating one if necessary.

LoadPlugins ( ) : void

Load plugin DLLs.

Protected Methods

Method Description
GetIsPluginAssetEnabled ( PluginAsset resource ) : bool

Get whether the plugin asset is enabled, using the application settings.

SetIsPluginAssetEnabled ( PluginAsset resource, bool value ) : void

Store whether the plugin asset is enabled using the application settings.

Private Methods

Method Description
BackgroundOperationThreadStart ( ) : void
BackgroundOperationUpdateProgress ( double value ) : void

Method Details

AddBackgroundOperation() public method

Add a background operation.
public AddBackgroundOperation ( string name, string description ) : BackgroundOperation
name string
description string
return BackgroundOperation

AlexandriaManager() public method

Initialise the manager, loading settings.
public AlexandriaManager ( ) : System
return System

GetGame() public method

Search for the first Game with the given Type, or return null if not found. An exact match is attempted first, and then the first Game to inherit from the Type is matched.
public GetGame ( Type gameType ) : Game
gameType System.Type
return Game

GetIsPluginAssetEnabled() protected method

Get whether the plugin asset is enabled, using the application settings.
protected GetIsPluginAssetEnabled ( PluginAsset resource ) : bool
resource Glare.Assets.PluginAsset
return bool

GetPathState() public method

Get a PathState for the given combination of parameters, creating one if necessary.
public GetPathState ( Game game, FileManager fileManager, string path ) : PathState
game Game
fileManager Glare.Assets.FileManager
path string
return PathState

LoadPlugins() public method

Load plugin DLLs.
public LoadPlugins ( ) : void
return void

SetIsPluginAssetEnabled() protected method

Store whether the plugin asset is enabled using the application settings.
protected SetIsPluginAssetEnabled ( PluginAsset resource, bool value ) : void
resource Glare.Assets.PluginAsset
value bool
return void