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

◆ SetupBestiary()

static void Terraria.ModLoader.ModContent.SetupBestiary ( )
inlinestaticprivate

Definition at line 507 of file ModContent.cs.

508 {
511 Main.BestiaryDB = bestiaryDatabase;
513 ItemDropDatabase itemDropDatabase = new ItemDropDatabase();
514 itemDropDatabase.Populate();
515 Main.ItemDropsDB = itemDropDatabase;
516 bestiaryDatabase.Merge(Main.ItemDropsDB);
517 if (!Main.dedServ)
518 {
519 Main.BestiaryUI = new UIBestiaryTest(Main.BestiaryDB);
520 }
521 Main.ItemDropSolver = new ItemDropResolver(itemDropDatabase);
522 Main.BestiaryTracker = new BestiaryUnlocksTracker();
523 }
static void RebuildBestiarySortingIDsByBestiaryDatabaseContents(BestiaryDatabase database)
This class stores instances of various content types in a number of dictionaries. These instances ser...

References Terraria.Main.BestiaryDB, Terraria.Main.dedServ, Terraria.Main.ItemDropsDB, Terraria.GameContent.ItemDropRules.ItemDropDatabase.Populate(), Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator.Populate(), and Terraria.ID.ContentSamples.RebuildBestiarySortingIDsByBestiaryDatabaseContents().

Referenced by Terraria.ModLoader.ModContent.Load(), and Terraria.ModLoader.ModContent.Unload().

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