tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.ModLoader.Core.TmodFile Class Reference

Inherits IEnumerable< TmodFile.FileEntry >.

Classes

class  FileEntry
 

Public Member Functions

void CacheFiles (ISet< string > skip=null)
 
byte[] GetBytes (FileEntry entry)
 
byte[] GetBytes (string fileName)
 
IEnumerator< FileEntryGetEnumerator ()
 
List< string > GetFileNames ()
 
Stream GetStream (FileEntry entry, bool newFileStream=false)
 
Stream GetStream (string fileName, bool newFileStream=false)
 
bool HasFile (string fileName)
 
IDisposable Open ()
 
void RemoveFromCache (IEnumerable< string > fileNames)
 
void ResetCache ()
 

Public Attributes

readonly string path
 

Static Public Attributes

const float COMPRESSION_TRADEOFF = 0.9f
 
const uint MAX_CACHE_SIZE = 1 << 17
 
const uint MIN_COMPRESS_SIZE = 1 << 10
 

Properties

int Count [get]
 
byte[] Hash [get]
 
bool IsOpen [get]
 
string Name [get]
 
Version TModLoaderVersion [get]
 
Version Version [get]