Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
ReLogic.Content.Sources.FileSystemContentSource Class Reference

Public Member Functions

 FileSystemContentSource (string basePath)
 
override Stream OpenStream (string assetName)
 Must be threadsafe!
 
IEnumerable< stringEnumerateAssets ()
 
string GetExtension (string assetName)
 Must be threadsafe!
 
bool HasAsset (string assetName)
 Checks Rejections and GetExtension to determine if an asset exists.
 
IEnumerable< stringGetAllAssetsStartingWith (string assetNameStart)
 

Protected Member Functions

void SetAssetNames (IEnumerable< string > paths)
 

Protected Attributes

string[] assetPaths
 
Dictionary< string, stringassetExtensions = new Dictionary<string, string>()
 

Properties

int FileCount [get]
 
IContentValidator ContentValidator [get, set]
 
RejectedAssetCollection Rejections = new RejectedAssetCollection() [get]
 

Private Member Functions

void BuildNameToAbsolutePathDictionary ()
 

Private Attributes

readonly string _basePath
 
readonly Dictionary< string, string_nameToAbsolutePath = new Dictionary<string, string>()
 

Detailed Description

Definition at line 7 of file FileSystemContentSource.cs.


The documentation for this class was generated from the following file: