TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetWall()

static ModWall Terraria.ModLoader.WallLoader.GetWall ( int type)
inlinestatic

Gets the ModWall instance with the given type. If no ModWall with the given type exists, returns null.

Definition at line 83 of file WallLoader.cs.

84 {
86 {
87 return null;
88 }
89 return walls[type - WallID.Count];
90 }
static readonly ushort Count
Definition WallID.cs:756
static readonly IList< ModWall > walls
Definition WallLoader.cs:32

References Terraria.ID.WallID.Count, Terraria.ModLoader.WallLoader.WallCount, and Terraria.ModLoader.WallLoader.walls.

Referenced by Terraria.ModLoader.WallLoader.CanExplode(), Terraria.ModLoader.WallLoader.CanPlace(), Terraria.ModLoader.WallLoader.CreateDust(), Terraria.ModLoader.WallLoader.Drop(), Terraria.ModLoader.ModContent.GetModWall(), Terraria.ModLoader.WallLoader.KillSound(), Terraria.ModLoader.WallLoader.KillWall(), Terraria.WorldGen.KillWall_MakeWallDust(), Terraria.ModLoader.WallLoader.ModifyLight(), Terraria.ModLoader.MapLoader.ModMapOption(), Terraria.ModLoader.WallLoader.NumDust(), Terraria.ModLoader.WallLoader.PlaceInWorld(), Terraria.ModLoader.WallLoader.PostDraw(), Terraria.ModLoader.WallLoader.PreDraw(), Terraria.ModLoader.WallLoader.RandomUpdate(), Terraria.ModLoader.WallLoader.WallFrame(), and Terraria.ModLoader.IO.MapIO.WriteModMap().

+ Here is the caller graph for this function: