tModLoader v2024.03
A mod to make and play Terraria mods
WorldMap Class Reference

Public Member Functions

 WorldMap (int maxWidth, int maxHeight)
 
void Clear ()
 
void ClearEdges ()
 
void ConsumeUpdate (int x, int y)
 
bool IsRevealed (int x, int y)
 
void Load ()
 
void Save ()
 
void SetTile (int x, int y, ref MapTile tile)
 
void UnlockMapSection (int sectionX, int sectionY)
 
void Update (int x, int y, byte light)
 
bool UpdateLighting (int x, int y, byte light)
 
bool UpdateType (int x, int y)
 

Public Attributes

readonly int MaxHeight
 
readonly int MaxWidth
 

Static Public Attributes

const int BlackEdgeWidth = 40
 

Properties

MapTile this[int x, int y] [get]