tModLoader v2025.03
A mod to make and play Terraria mods
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
WallLoader Class Reference

This serves as the central class from which wall-related functions are supported and carried out. More...

Public Member Functions

delegate bool ConvertWall (int i, int j, int type, int conversionType)
 

Static Public Member Functions

static void AnimateWalls ()
 
static bool CanExplode (int i, int j, int type)
 
static bool CanPlace (int i, int j, int type)
 
static bool Convert (int i, int j, int conversionType)
 
static bool CreateDust (int i, int j, int type, ref int dustType)
 
static bool Drop (int i, int j, int type, ref int dropType)
 
static ModWall GetWall (int type)
 Gets the ModWall instance with the given type. If no ModWall with the given type exists, returns null.
 
static bool KillSound (int i, int j, int type, bool fail)
 
static void KillWall (int i, int j, int type, ref bool fail)
 
static void ModifyLight (int i, int j, int type, ref float r, ref float g, ref float b)
 
static void NumDust (int i, int j, int type, bool fail, ref int numDust)
 
static void PlaceInWorld (int i, int j, Item item)
 
static void PostDraw (int i, int j, int type, SpriteBatch spriteBatch)
 
static bool PreDraw (int i, int j, int type, SpriteBatch spriteBatch)
 
static void RandomUpdate (int i, int j, int type)
 
static void RegisterConversion (int wallType, int conversionType, ConvertWall conversionDelegate)
 Registers a wall type as having custom biome conversion code for this specific BiomeConversionID. For modded walls, you can directly use Convert
If you need to register conversions that rely on WallID.Sets.Conversion being fully populated, consider doing it in ModBiomeConversion.PostSetupContent More...
 
static bool WallFrame (int i, int j, int type, bool randomizeFrame, ref int style, ref int frameNumber)
 

Properties

static int WallCount [get]
 

Detailed Description

This serves as the central class from which wall-related functions are supported and carried out.

Member Function Documentation

◆ RegisterConversion()

static void WallLoader.RegisterConversion ( int  wallType,
int  conversionType,
ConvertWall  conversionDelegate 
)
static

Registers a wall type as having custom biome conversion code for this specific BiomeConversionID. For modded walls, you can directly use Convert
If you need to register conversions that rely on WallID.Sets.Conversion being fully populated, consider doing it in ModBiomeConversion.PostSetupContent

Parameters
wallTypeThe wall type that has is affected by this custom conversion.
conversionTypeThe conversion type for which the wall should use custom conversion code.
conversionDelegateCode to run when the wall attempts to get converted. Return false to signal that your custom conversion took place and that vanilla code shouldn't be ran.