C# Class ProtogameAssetTool.BuiltinRawAssetLoader

A raw asset loader that loads from the current directory (used for built-in asset loading).
Inheritance: IRawAssetLoader
显示文件 Open project: RedpointGames/Protogame

Public Methods

Method Description
BuiltinRawAssetLoader ( ILoadStrategy strategies ) : System.IO

Initializes a new instance of the BuiltinRawAssetLoader class.

GetPotentialPathsForRawAsset ( string name ) : IEnumerable
LoadRawAssetCandidates ( string name ) : IEnumerable

Loads all potential raw asset candidates for the given asset name. It is up to the caller to determine which representation will be used.

LoadRawAssetCandidatesWithModificationDates ( string name ) : DateTime?>>.IEnumerable

Loads all potential raw asset candidates for the given asset name, including the last modification dates of the candidates. It is up to the caller to determine which representation will be used.

ScanRawAssets ( ) : IEnumerable

Return all available asset names.

Method Details

BuiltinRawAssetLoader() public method

Initializes a new instance of the BuiltinRawAssetLoader class.
public BuiltinRawAssetLoader ( ILoadStrategy strategies ) : System.IO
strategies ILoadStrategy /// The strategies. ///
return System.IO

GetPotentialPathsForRawAsset() public method

public GetPotentialPathsForRawAsset ( string name ) : IEnumerable
name string
return IEnumerable

LoadRawAssetCandidates() public method

Loads all potential raw asset candidates for the given asset name. It is up to the caller to determine which representation will be used.
public LoadRawAssetCandidates ( string name ) : IEnumerable
name string The name of the asset.
return IEnumerable

LoadRawAssetCandidatesWithModificationDates() public method

Loads all potential raw asset candidates for the given asset name, including the last modification dates of the candidates. It is up to the caller to determine which representation will be used.
public LoadRawAssetCandidatesWithModificationDates ( string name ) : DateTime?>>.IEnumerable
name string The name of the asset.
return DateTime?>>.IEnumerable

ScanRawAssets() public method

Return all available asset names.
public ScanRawAssets ( ) : IEnumerable
return IEnumerable