C# 클래스 Alexandria.AlexandriaPluginFormatAsset

A derived class from PluginFormatAsset that can detect GameInstances.
상속: Glare.Assets.PluginFormatAsset
파일 보기 프로젝트 열기: Burton-Radons/Alexandria

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
MatchGameFile ( string path, string filename, FileManager manager ) : bool

Return whether the game file exists within the path or

메소드 상세

AlexandriaPluginFormatAsset() 공개 메소드

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

Detect() 공개 메소드

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

DetectFile() 공개 메소드

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.
리턴 void

MatchGame() 공개 메소드

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.
리턴 GameInstance

MatchGameFile() 보호된 정적인 메소드

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.
리턴 bool