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

◆ SetupContent()

override void Terraria.ModLoader.ModNPC.SetupContent ( )
inlinesealedvirtual

If you make a new ModType, seal this override, and call M:Terraria.ModLoader.ModType.SetStaticDefaults in it.

Reimplemented from Terraria.ModLoader.ModType< NPC, ModNPC >.

Definition at line 121 of file ModNPC.cs.

122 {
123 NPCLoader.SetDefaults(NPC, createModNPC: false);
126 NPCID.Search.Add(base.FullName, Type);
127 }
static readonly IdDictionary Search
Definition NPCID.cs:12911
virtual void AutoStaticDefaults()
Automatically sets certain static defaults. Override this if you do not want the properties to be set...
Definition ModNPC.cs:146
NPC NPC
The NPC object that this ModNPC controls.
Definition ModNPC.cs:23
virtual void SetStaticDefaults()
Allows you to modify the properties after initial loading has completed.
Definition ModType.cs:72

References Terraria.ModLoader.ModNPC.AutoStaticDefaults(), Terraria.ID.NPCID.Search, Terraria.ModLoader.NPCLoader.SetDefaults(), and Terraria.ModLoader.ModType< NPC, ModNPC >.SetStaticDefaults().

+ Here is the call graph for this function: