Path-of-Terraria / PathOfTerraria

GNU General Public License v3.0
1 stars 1 forks source link

Hot Reload Passive Data #341

Open CollinHerber opened 4 weeks ago

CollinHerber commented 4 weeks ago

Summary

The goal of this ticket is to add the ability to load the passive data without needing to reload the whole mod for quicker development.

I think the best option would be to use something like https://learn.microsoft.com/en-us/dotnet/api/system.reflection.metadata.metadataupdatehandlerattribute?view=net-6.0 to know when Hot Reload takes places and then clearing out the passive data and making the registry load it again.

As an alternative if we cannot get the above working something like a command to clear it and reload works as well.

Reasonings

Quicker development of passive related items

shnakamura commented 3 weeks ago

We will most likely have to implement this through a file watcher, since the attribute is designed only for type alterations.