JavidPack / BossChecklist

Mod for tModLoader to help with Boss Progression
https://forums.terraria.org/index.php?threads/boss-checklist-in-game-progression-checklist.50668/
61 stars 23 forks source link

add GetCurrentBossInfo mod.Call #25

Closed direwolf420 closed 4 years ago

direwolf420 commented 4 years ago

Add mod.Call to expose the bossTracker.SortedBosses data to modders for use. Copy, so no way to modify the original data. Realized through a list of dictionaries with each key/value pair being a variable in the internal BossInfo class. Commented out was an ExpandoObject attempt that failed to compile, but left in due to request. Below is sample usage with a recommended class to hold these variables. Feel free to change everything

Sample usage: https://pastebin.com/xWcUwWUJ