tModLoader v2024.12
A mod to make and play Terraria mods
TileIO.IOImpl< TBlock, TEntry > Class Template Referenceabstract

Public Member Functions

void Clear ()
 
void LoadData (TagCompound tag, TEntry[] savedEntryLookup)
 
void LoadEntries (TagCompound tag, out TEntry[] savedEntryLookup)
 
void Save (TagCompound tag)
 
byte[] SaveData (out bool[] hasObj)
 

Public Attributes

readonly string dataKey
 
TEntry[] entries
 
readonly string entriesKey
 
PosData< ushort >[] unloadedEntryLookup
 
List< ushort > unloadedTypes = new List<ushort>()
 

Protected Member Functions

 IOImpl (string entriesKey, string dataKey)
 
abstract TEntry ConvertBlockToEntry (TBlock block)
 
abstract ushort GetModBlockType (Tile tile)
 
abstract void ReadData (Tile tile, TEntry entry, BinaryReader reader)
 
abstract void WriteData (BinaryWriter writer, Tile tile, TEntry entry)
 

Properties

abstract int LoadedBlockCount [get]
 
abstract IEnumerable< TBlock > LoadedBlocks [get]