C# Class Alexandria.AlexandriaPluginFormatAsset

A derived class from PluginFormatAsset that can detect GameInstances.
Inheritance: Glare.Assets.PluginFormatAsset
Afficher le fichier Open project: Burton-Radons/Alexandria

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
MatchGameFile ( string path, string filename, FileManager manager ) : bool

Return whether the game file exists within the path or

Method Details

AlexandriaPluginFormatAsset() public méthode

Initialise the object.
public AlexandriaPluginFormatAsset ( AlexandriaPlugin plugin ) : System
plugin AlexandriaPlugin
Résultat System

Detect() public méthode

Attempt to detect GameInstances.
public Detect ( ICollection collection ) : void
collection ICollection
Résultat void

DetectFile() public méthode

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.
Résultat void

MatchGame() public méthode

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.
Résultat GameInstance

MatchGameFile() protected static méthode

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.
Résultat bool