Elin Modding Docs Doc
Loading...
Searching...
No Matches
TextureManager Class Reference

Public Member Functions

void Init ()
 
void AddBase (TextureData data, string path, MeshPass pass, string texName="_MainTex")
 
void Add (MeshPass to, TextureData from, string texName="_MainTex")
 
void AddList (TextureData data, string path)
 
void RefreshTextures ()
 
void OnDropFile (List< string > paths)
 
bool TryAddReplace (FileInfo file, TextureReplace.Source source=TextureReplace.Source.Mod, bool add=true, bool refresh=false)
 
void ApplyLocalReplace (string path)
 

Public Attributes

Dictionary< string, TextureDatatexMap = new Dictionary<string, TextureData>()
 

Properties

string pathTex [get]
 

Detailed Description

Definition at line 6 of file TextureManager.cs.

Member Function Documentation

◆ Add()

void TextureManager.Add ( MeshPass to,
TextureData from,
string texName = "_MainTex" )

Definition at line 83 of file TextureManager.cs.

◆ AddBase()

void TextureManager.AddBase ( TextureData data,
string path,
MeshPass pass,
string texName = "_MainTex" )

Definition at line 71 of file TextureManager.cs.

◆ AddList()

void TextureManager.AddList ( TextureData data,
string path )

Definition at line 89 of file TextureManager.cs.

◆ ApplyLocalReplace()

void TextureManager.ApplyLocalReplace ( string path)

Definition at line 177 of file TextureManager.cs.

◆ Init()

void TextureManager.Init ( )

Definition at line 19 of file TextureManager.cs.

◆ OnDropFile()

void TextureManager.OnDropFile ( List< string > paths)

Definition at line 109 of file TextureManager.cs.

◆ RefreshTextures()

void TextureManager.RefreshTextures ( )

Definition at line 96 of file TextureManager.cs.

◆ TryAddReplace()

bool TextureManager.TryAddReplace ( FileInfo file,
TextureReplace.Source source = TextureReplace::Source::Mod,
bool add = true,
bool refresh = false )

Definition at line 137 of file TextureManager.cs.

Member Data Documentation

◆ texMap

Dictionary<string, TextureData> TextureManager.texMap = new Dictionary<string, TextureData>()

Definition at line 211 of file TextureManager.cs.

Property Documentation

◆ pathTex

string TextureManager.pathTex
get

Definition at line 10 of file TextureManager.cs.


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