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

◆ Unload()

static void Terraria.ModLoader.NPCLoader.Unload ( )
inlinestaticpackage

Definition at line 424 of file NPCLoader.cs.

425 {
427 npcs.Clear();
428 GlobalList<GlobalNPC>.Reset();
429 bannerToItem.Clear();
430 modHooks.Clear();
432 if (!Main.dedServ)
433 {
434 TownNPCProfiles.Instance.ResetTexturesAccordingToVanillaProfiles();
435 }
436 }
static readonly short Count
Definition NPCID.cs:12909
static readonly IList< ModNPC > npcs
Definition NPCLoader.cs:101
static readonly List< GlobalHookList< GlobalNPC > > modHooks
Definition NPCLoader.cs:112
static readonly IDictionary< int, int > bannerToItem
Definition NPCLoader.cs:103
static void UpdateHookLists()
Definition NPCLoader.cs:353

References Terraria.ModLoader.NPCLoader.bannerToItem, Terraria.ID.NPCID.Count, Terraria.Main.dedServ, Terraria.GameContent.TownNPCProfiles.Instance, Terraria.ModLoader.NPCLoader.modHooks, Terraria.ModLoader.NPCLoader.NPCCount, Terraria.ModLoader.NPCLoader.npcs, and Terraria.ModLoader.NPCLoader.UpdateHookLists().

Referenced by Terraria.ModLoader.ModContent.Unload().

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