terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
TextureAtlasDB Class Reference
+ Collaboration diagram for TextureAtlasDB:

Classes

struct  SwitchEntry
 

Public Types

enum  AtlasIds {
  Tiles , Misc , NPC , Walls ,
  Waterfall , Trees , Player , Item ,
  Projectile , Gore , Glow , MapBG ,
  UI , Buff , MiniMap , Background ,
  Count
}
 

Public Member Functions

 TextureAtlasDB (string id)
 
void SetNumberOfAtlasPages (short pages)
 
void AddEntry (TextureAtlasEntry entry)
 
void Load ()
 
byte[] Save ()
 
void LoadTexturesAsync (int index)
 
global::UnityEngine.Texture2D AltlasTexture (int index)
 
global::UnityEngine.Texture2D AltlasAlphaTexture (int index)
 
global::UnityEngine.Texture2D AltlasPalTexture (int index)
 
bool GetTexture (int fileUID, out TextureAtlasDB atlas, out TextureAtlasEntry atlasEntry)
 

Static Public Member Functions

static void LoadTextureDBs ()
 
static bool LoadTexture (string file, out TextureAtlasDB atlas, out TextureAtlasEntry atlasEntry)
 
static bool PendingAssetUnload ()
 
static void ActionPendingUnloadAssets (bool fromLowMemory=false)
 
static void UnloadAssets ()
 

Public Attributes

int[] BatchTextureIndex
 
int[] TextureWidth
 
int[] TextureHeight
 

Static Public Attributes

static List< TextureAtlasDBAltlasDBs
 

Properties

static bool DefaultTexturesHigh [get, set]
 
string ContentRoot [get, set]
 
static bool UITexturesHigh [get, set]
 
static bool CharacterTexturesHigh [get, set]
 
static bool ProjectileTexturesHigh [get, set]
 
static bool BackgroundTexturesHigh [get, set]
 
static bool GoreTexturesHigh [get, set]
 
static bool GlowTexturesHigh [get, set]
 
static bool EnvironmentTexturesHigh [get, set]
 

Private Member Functions

void LoadTextures ()
 
void LoadCallback (global::UnityEngine.Texture2D tex0, global::UnityEngine.Texture2D tex1, global::UnityEngine.Texture2D tex2, int page)
 

Static Private Member Functions

static TextureAtlasDB LoadDB (string id, bool useLowResTextures=false)
 
static void SwitchAtlas (int atlas, bool useLowRes)
 
static TextureAtlasDB ()
 

Private Attributes

bool UseLowResTextures
 
short NumberOfPages
 
string Id
 
bool loaded
 
bool[] TexturesLoadRequested
 
global::UnityEngine.Texture2D[] Textures
 
global::UnityEngine.Texture2D[] TexturesAlpha
 
global::UnityEngine.Texture2D[] TexturesPal
 
Dictionary< int, TextureAtlasEntryAtlasEntries
 

Static Private Attributes

static bool _uiTexturesHigh
 
static bool _characterTexturesHigh
 
static bool _projectileTexturesHigh
 
static bool _backgroundTexturesHigh
 
static bool _goreTexturesHigh
 
static bool _glowTexturesHigh
 
static bool _environmentTexturesHigh
 
static List< TextureAtlasDB.SwitchEntrypendingSwitches
 
static bool PendingUnload
 

Detailed Description

Definition at line 13 of file TextureAtlasDB.cs.


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