C# Class Alexandria.AlexandriaPluginFormatAsset

A derived class from PluginFormatAsset that can detect GameInstances.
Inheritance: Glare.Assets.PluginFormatAsset
ファイルを表示 Open project: Burton-Radons/Alexandria

Public Methods

Method Description
AlexandriaPluginFormatAsset ( AlexandriaPlugin plugin ) : System

Initialise the object.

Detect ( ICollection collection ) : void

Attempt to detect GameInstances.

DetectFile ( ICollection collection, string path, BinaryReader reader, FileManager manager ) : void

Attempt to detect a GameInstance from this file.

MatchGame ( string path, FileManager manager ) : GameInstance

Attempt to match a game instance from a given path or a given file, returning the GameInstance or null if none could be found.

Protected Methods

Method Description
MatchGameFile ( string path, string filename, FileManager manager ) : bool

Return whether the game file exists within the path or

Method Details

AlexandriaPluginFormatAsset() public method

Initialise the object.
public AlexandriaPluginFormatAsset ( AlexandriaPlugin plugin ) : System
plugin AlexandriaPlugin
return System

Detect() public method

Attempt to detect GameInstances.
public Detect ( ICollection collection ) : void
collection ICollection
return void

DetectFile() public method

Attempt to detect a GameInstance from this file.
public DetectFile ( ICollection collection, string path, BinaryReader reader, FileManager manager ) : void
collection ICollection
path string The path to the file.
reader System.IO.BinaryReader The opened file reader. You do not need to reset the position afterwards.
manager Glare.Assets.FileManager The to open any other files, if necessary.
return void

MatchGame() public method

Attempt to match a game instance from a given path or a given file, returning the GameInstance or null if none could be found.
public MatchGame ( string path, FileManager manager ) : GameInstance
path string
manager Glare.Assets.FileManager The file manager to use for opening files.
return GameInstance

MatchGameFile() protected static method

Return whether the game file exists within the path or
protected static MatchGameFile ( string path, string filename, FileManager manager ) : bool
path string
filename string
manager Glare.Assets.FileManager The file manager to use for opening files.
return bool