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

Inherits MicroBiome, and AShoppingBiome.

Public Member Functions

override bool IsInBiome (Player player)
 
override bool Place (Point origin, StructureMap structures)
 
abstract bool Place (Point origin, StructureMap structures)
 
- Public Member Functions inherited from GenBase
delegate bool CustomPerUnitAction (int x, int y, params object[] args)
 
abstract bool IsInBiome (Player player)
 
bool IsInBiome (Player player)
 
- Public Member Functions inherited from ILoadable
virtual bool IsLoadingEnabled (Mod mod)
 Whether or not this type should be loaded when it's told to. Returning false disables Mod.AddContent from actually loading this type. More...
 
abstract void Load (Mod mod)
 Called when loading the type. More...
 
abstract void Unload ()
 Called during unloading when needed. More...
 

Public Attributes

double ChanceOfEntrance = 0.3333
 

Additional Inherited Members

- Properties inherited from GenBase
static UnifiedRandom _random [get]
 
static ref Tilemap _tiles [get]
 
static int _worldHeight [get]
 
static int _worldWidth [get]
 
- Properties inherited from AShoppingBiome
string NameKey [get, protected set]
 
- Properties inherited from IShoppingBiome
string NameKey [get]
 

Member Function Documentation

◆ IsInBiome()

override bool DesertBiome.IsInBiome ( Player  player)
virtual

Implements AShoppingBiome.

◆ Place()

override bool DesertBiome.Place ( Point  origin,
StructureMap  structures 
)
virtual

Implements GenStructure.