Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ReLogic.Content.Sources.ZipContentSource Class Reference

Public Member Functions

 ZipContentSource (string path)
 
 ZipContentSource (string path, string contentDir)
 
 ZipContentSource (ZipFile zip, string contentDir)
 
override Stream OpenStream (string assetName)
 Must be threadsafe!
 
void Dispose ()
 
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

virtual void Dispose (bool disposing)
 
void SetAssetNames (IEnumerable< string > paths)
 

Protected Attributes

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

Properties

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

Private Member Functions

void BuildEntryList ()
 

Static Private Member Functions

static bool ZipPathContainsInvalidCharacters (string path)
 
static string CleanZipPath (string path)
 

Private Attributes

readonly ZipFile _zipFile
 
readonly Dictionary< string, ZipEntry_entries = new Dictionary<string, ZipEntry>()
 
readonly string _basePath
 
bool _isDisposed
 

Detailed Description

Definition at line 10 of file ZipContentSource.cs.


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