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

◆ WallFrame()

static bool Terraria.ModLoader.WallLoader.WallFrame ( int i,
int j,
int type,
bool randomizeFrame,
ref int style,
ref int frameNumber )
inlinestatic

Definition at line 293 of file WallLoader.cs.

294 {
295 ModWall modWall = GetWall(type);
296 if (modWall != null && !modWall.WallFrame(i, j, randomizeFrame, ref style, ref frameNumber))
297 {
298 return false;
299 }
301 for (int k = 0; k < hookWallFrame.Length; k++)
302 {
303 if (!hookWallFrame[k](i, j, type, randomizeFrame, ref style, ref frameNumber))
304 {
305 return false;
306 }
307 }
308 return true;
309 }
static ModWall GetWall(int type)
Gets the ModWall instance with the given type. If no ModWall with the given type exists,...
Definition WallLoader.cs:83
delegate bool DelegateWallFrame(int i, int j, int type, bool randomizeFrame, ref int style, ref int frameNumber)
static DelegateWallFrame[] HookWallFrame
Definition WallLoader.cs:59

References Terraria.ModLoader.WallLoader.DelegateWallFrame(), Terraria.ModLoader.WallLoader.GetWall(), and Terraria.ModLoader.WallLoader.HookWallFrame.

Referenced by Terraria.Framing.WallFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: