TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.WallLoader Class Reference

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

+ Collaboration diagram for Terraria.ModLoader.WallLoader:

Static Public Member Functions

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 NumDust (int i, int j, int type, bool fail, ref int numDust)
 
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 void KillWall (int i, int j, int type, ref bool fail)
 
static bool CanPlace (int i, int j, int type)
 
static bool CanExplode (int i, int j, int type)
 
static void ModifyLight (int i, int j, int type, ref float r, ref float g, ref float b)
 
static void RandomUpdate (int i, int j, int type)
 
static bool WallFrame (int i, int j, int type, bool randomizeFrame, ref int style, ref int frameNumber)
 
static void AnimateWalls ()
 
static bool PreDraw (int i, int j, int type, SpriteBatch spriteBatch)
 
static void PostDraw (int i, int j, int type, SpriteBatch spriteBatch)
 
static void PlaceInWorld (int i, int j, Item item)
 

Static Package Functions

static int ReserveWallID ()
 
static void ResizeArrays (bool unloading=false)
 
static void Unload ()
 
static void WriteType (ushort wall, byte[] data, ref int index, ref byte flags)
 
static void ReadType (ref ushort wall, BinaryReader reader, byte flags, IDictionary< int, int > wallTable)
 
static void FinishSetup ()
 

Static Package Attributes

static readonly IList< ModWallwalls = new List<ModWall>()
 
static readonly IList< GlobalWallglobalWalls = new List<GlobalWall>()
 
static readonly Dictionary< int, int > wallTypeToItemType = new Dictionary<int, int>()
 Maps Wall type to the Item type that places the wall.
 

Properties

static int WallCount [get]
 

Private Member Functions

delegate void DelegateNumDust (int i, int j, int type, bool fail, ref int num)
 
delegate bool DelegateCreateDust (int i, int j, int type, ref int dustType)
 
delegate bool DelegateDrop (int i, int j, int type, ref int dropType)
 
delegate void DelegateKillWall (int i, int j, int type, ref bool fail)
 
delegate void DelegateModifyLight (int i, int j, int type, ref float r, ref float g, ref float b)
 
delegate bool DelegateWallFrame (int i, int j, int type, bool randomizeFrame, ref int style, ref int frameNumber)
 

Static Private Member Functions

static void Resize2DArray< T > (ref T[,] array, int newSize)
 

Static Private Attributes

static int nextWall = WallID.Count
 
static bool loaded = false
 
static Func< int, int, int, bool, bool >[] HookKillSound
 
static DelegateNumDust[] HookNumDust
 
static DelegateCreateDust[] HookCreateDust
 
static DelegateDrop[] HookDrop
 
static DelegateKillWall[] HookKillWall
 
static Func< int, int, int, bool >[] HookCanPlace
 
static Func< int, int, int, bool >[] HookCanExplode
 
static DelegateModifyLight[] HookModifyLight
 
static Action< int, int, int >[] HookRandomUpdate
 
static DelegateWallFrame[] HookWallFrame
 
static Func< int, int, int, SpriteBatch, bool >[] HookPreDraw
 
static Action< int, int, int, SpriteBatch >[] HookPostDraw
 
static Action< int, int, int, Item >[] HookPlaceInWorld
 

Detailed Description

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

Definition at line 16 of file WallLoader.cs.


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