tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.WorldHooks Class Reference

This is where all ModWorld hooks are gathered and called. More...

+ Collaboration diagram for Terraria.ModLoader.WorldHooks:

Static Public Member Functions

static void ChooseWaterStyle (ref int style)
 
static void ModifyHardmodeTasks (List< GenPass > passes)
 
static void ModifyWorldGenTasks (List< GenPass > passes, ref float totalWeight)
 
static void PostDrawTiles ()
 
static void PostUpdate ()
 
static void PostWorldGen ()
 
static void PreUpdate ()
 
static void PreWorldGen ()
 
static void ResetNearbyTileEffects ()
 
static void TileCountsAvailable (int[] tileCounts)
 

Detailed Description

This is where all ModWorld hooks are gathered and called.

Definition at line 12 of file WorldHooks.cs.

Member Function Documentation

◆ ChooseWaterStyle()

static void Terraria.ModLoader.WorldHooks.ChooseWaterStyle ( ref int  style)
static

Definition at line 92 of file WorldHooks.cs.

92 {
93 foreach (ModWorld modWorld in worlds) {
94 modWorld.ChooseWaterStyle(ref style);
95 }
96 }

References Terraria.ModLoader.ModWorld.ChooseWaterStyle().

Referenced by Terraria.ModLoader.WaterStyleLoader.ChooseWaterStyle().

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

◆ ModifyHardmodeTasks()

static void Terraria.ModLoader.WorldHooks.ModifyHardmodeTasks ( List< GenPass >  passes)
static

Definition at line 98 of file WorldHooks.cs.

98 {
99 foreach (ModWorld modWorld in worlds) {
100 modWorld.ModifyHardmodeTasks(passes);
101 }
102 }

References Terraria.ModLoader.ModWorld.ModifyHardmodeTasks().

+ Here is the call graph for this function:

◆ ModifyWorldGenTasks()

static void Terraria.ModLoader.WorldHooks.ModifyWorldGenTasks ( List< GenPass >  passes,
ref float  totalWeight 
)
static

Definition at line 56 of file WorldHooks.cs.

56 {
57 foreach (ModWorld modWorld in worlds) {
58 modWorld.ModifyWorldGenTasks(passes, ref totalWeight);
59 }
60 }

References Terraria.ModLoader.ModWorld.ModifyWorldGenTasks().

+ Here is the call graph for this function:

◆ PostDrawTiles()

static void Terraria.ModLoader.WorldHooks.PostDrawTiles ( )
static

Definition at line 104 of file WorldHooks.cs.

104 {
105 foreach (ModWorld modWorld in worlds) {
106 modWorld.PostDrawTiles();
107 }
108 }

References Terraria.ModLoader.ModWorld.PostDrawTiles().

+ Here is the call graph for this function:

◆ PostUpdate()

static void Terraria.ModLoader.WorldHooks.PostUpdate ( )
static

Definition at line 80 of file WorldHooks.cs.

80 {
81 foreach (ModWorld modWorld in worlds) {
82 modWorld.PostUpdate();
83 }
84 }

References Terraria.ModLoader.ModWorld.PostUpdate().

+ Here is the call graph for this function:

◆ PostWorldGen()

static void Terraria.ModLoader.WorldHooks.PostWorldGen ( )
static

Definition at line 62 of file WorldHooks.cs.

62 {
63 foreach (ModWorld modWorld in worlds) {
64 modWorld.PostWorldGen();
65 }
66 }

References Terraria.ModLoader.ModWorld.PostWorldGen().

+ Here is the call graph for this function:

◆ PreUpdate()

static void Terraria.ModLoader.WorldHooks.PreUpdate ( )
static

Definition at line 74 of file WorldHooks.cs.

74 {
75 foreach (ModWorld modWorld in worlds) {
76 modWorld.PreUpdate();
77 }
78 }

References Terraria.ModLoader.ModWorld.PreUpdate().

+ Here is the call graph for this function:

◆ PreWorldGen()

static void Terraria.ModLoader.WorldHooks.PreWorldGen ( )
static

Definition at line 50 of file WorldHooks.cs.

50 {
51 foreach (ModWorld modWorld in worlds) {
52 modWorld.PreWorldGen();
53 }
54 }

References Terraria.ModLoader.ModWorld.PreWorldGen().

+ Here is the call graph for this function:

◆ ResetNearbyTileEffects()

static void Terraria.ModLoader.WorldHooks.ResetNearbyTileEffects ( )
static

Definition at line 68 of file WorldHooks.cs.

68 {
69 foreach (ModWorld modWorld in worlds) {
70 modWorld.ResetNearbyTileEffects();
71 }
72 }

References Terraria.ModLoader.ModWorld.ResetNearbyTileEffects().

+ Here is the call graph for this function:

◆ TileCountsAvailable()

static void Terraria.ModLoader.WorldHooks.TileCountsAvailable ( int[]  tileCounts)
static

Definition at line 86 of file WorldHooks.cs.

86 {
87 foreach (ModWorld modWorld in worlds) {
88 modWorld.TileCountsAvailable(tileCounts);
89 }
90 }

References Terraria.ModLoader.ModWorld.TileCountsAvailable().

+ Here is the call graph for this function: