ProD  4.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Events | List of all members
ProD.TextureManager Class Reference

Inherits MonoBehaviour.

Public Member Functions

delegate void EventHandler (Texture2D t)
 
void SaveMap (Map map, string name)
 
Map LoadMap (Texture2D mapTexture)
 
Map ConvertTextureToMap (Texture2D mapTexture)
 
Texture2D ConvertMapToTexture (Map map, bool forcePowerOfTwo)
 
void SaveTexture (Texture2D tex, string directory)
 
Color getCellColor (string cellType)
 
string getCellType (Color cellColor)
 
void LoadMapTexture (string path)
 
IEnumerator getTextureFromURL (string url)
 

Public Attributes

Color wallColor = Color.red
 
Color pathColor = Color.cyan
 
Color unilluminatedColor
 
Color abyssColor = Color.grey
 
Color doorColor = Color.blue
 
Color entranceColor = Color.green
 
Color exitColor = Color.yellow
 
string mapDir = "Maps"
 

Events

EventHandler TextureLoaded
 

Member Function Documentation

Texture2D ProD.TextureManager.ConvertMapToTexture ( Map  map,
bool  forcePowerOfTwo 
)
Map ProD.TextureManager.ConvertTextureToMap ( Texture2D  mapTexture)
delegate void ProD.TextureManager.EventHandler ( Texture2D  t)
Color ProD.TextureManager.getCellColor ( string  cellType)
string ProD.TextureManager.getCellType ( Color  cellColor)
IEnumerator ProD.TextureManager.getTextureFromURL ( string  url)
Map ProD.TextureManager.LoadMap ( Texture2D  mapTexture)
void ProD.TextureManager.LoadMapTexture ( string  path)
void ProD.TextureManager.SaveMap ( Map  map,
string  name 
)
void ProD.TextureManager.SaveTexture ( Texture2D  tex,
string  directory 
)

Member Data Documentation

Color ProD.TextureManager.abyssColor = Color.grey
Color ProD.TextureManager.doorColor = Color.blue
Color ProD.TextureManager.entranceColor = Color.green
Color ProD.TextureManager.exitColor = Color.yellow
string ProD.TextureManager.mapDir = "Maps"
Color ProD.TextureManager.pathColor = Color.cyan
Color ProD.TextureManager.unilluminatedColor
Color ProD.TextureManager.wallColor = Color.red

Event Documentation

EventHandler ProD.TextureManager.TextureLoaded