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

◆ Load()

override void Terraria.ModLoader.Default.ModLoaderMod.Load ( )
inlinevirtual

Override this method to run code after all content has been autoloaded. Here additional content can be manually loaded and Mod-wide tasks and setup can be done. For organization, it may be more suitable to split some things into various M:Terraria.ModLoader.ModType.Load methods, such as in T:Terraria.ModLoader.ModSystem classes, instead of doing everything here.
Beware that mod content has not finished loading here, things like ModContent lookup tables or ID Sets are not fully populated. Use M:Terraria.ModLoader.Mod.PostSetupContent for any logic that needs to act on all content being fully loaded.

Reimplemented from Terraria.ModLoader.Mod.

Definition at line 43 of file ModLoaderMod.cs.

44 {
46 group t by t.InternalSetName into set
47 select set.ToArray()).ToArray();
49 group t by t.InternalSetName into set
50 select set.ToArray()).ToArray();
51 }
static DeveloperItem[][] DeveloperSets
IEnumerable< ILoadable > GetContent()
Returns all registered content instances that are added by this mod. This only includes the 'templat...
Definition Mod.cs:200

References Terraria.ModLoader.Default.ModLoaderMod.DeveloperSets, and Terraria.ModLoader.Default.ModLoaderMod.PatronSets.