JavidPack / BossChecklist

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

Whether to support the api in http mode #86

Closed x0620x closed 1 year ago

x0620x commented 2 years ago

Hi, I love this mod Do you support the API in http mode to view defeated bosses and undefeated bosses? If not, whether to consider adding this API later

JavidPack commented 2 years ago

I'm not sure what you mean, can you explain this idea?

x0620x commented 2 years ago

Hello author, I mean when loading a module, can you start a http service locally, and you can use this service to query defeated and undefeated bosses

E.g:http:127.0.0.1:port/boss returned messages status=200 defeated:king slime、 undefeated:Eye of Crusus、world eater、

JavidPack commented 2 years ago

I don't really know how to make that, but maybe someone would implement that as a separate mod.

x0620x commented 2 years ago

thank you for your reply. I am trying to make an interface. I found that by querying the boss list on the server side, the console boss list can be colored to differentiate between defeated and undefeated ones. Is it possible to add a text mark to this? instead of distinguishing by color

like this Boss: Queen Bee(defeated) Boss: Skeletron(undefeated) Boss: Turkor The Ungrateful(undefeated) Boss: Deerclops(defeated) Boss: Deviantt(defeated)

JavidPack commented 2 years ago

If you are making a mod, use the https://github.com/JavidPack/BossChecklist/blob/1.4/BossChecklistIntegrationExample.cs integration code to retrieve the boss data directly, then you can do whatever you want with the resulting data.