Open CollinHerber opened 4 weeks ago
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.
Quicker development of passive related items
We will most likely have to implement this through a file watcher, since the attribute is designed only for type alterations.
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