C# Class Protogame.RawEffectLoadStrategy

Inheritance: ILoadStrategy
显示文件 Open project: RedpointGames/Protogame

Public Methods

Method Description
AttemptLoad ( string path, string name, System.DateTime &lastModified, bool noTranslate = false ) : IRawAsset
GetPotentialPaths ( string path, string name, bool noTranslate = false ) : System.Collections.Generic.IEnumerable

Private Methods

Method Description
ResolveIncludes ( DirectoryInfo directory, string code ) : string

Resolves #include declarations in the file before the code is evaluated internally by MonoGame.

This resolves the #include declarations before the code is processed by MonoGame. This is required because the code is stored as a temporary file before being processed, instead of being processed at the source (because once we get the code, we are not processing per-file but per-asset).

Method Details

AttemptLoad() public method

public AttemptLoad ( string path, string name, System.DateTime &lastModified, bool noTranslate = false ) : IRawAsset
path string
name string
lastModified System.DateTime
noTranslate bool
return IRawAsset

GetPotentialPaths() public method

public GetPotentialPaths ( string path, string name, bool noTranslate = false ) : System.Collections.Generic.IEnumerable
path string
name string
noTranslate bool
return System.Collections.Generic.IEnumerable