You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We might also consider autoloading all Relics from enabled mods, by searching for files ending with our specific file extension, such as .rl2relic.json or .rl2relic. The issue with this is that there would be no way to disable loading them under some condition. Would also require enforcing the
Note
Texture file name must be the same as the Relic JSON file name
rule, or providing optional parameters, one overload for providing paths, and one for Texture2D objects like this
What is the addition?
New ways of registrating Relics from JSON files, to be more aligned to vanilla.
Why?
We might want to encourage mods to be more data driven, storing data in external JSON files instead of all in code.
Example of the usage
We might also consider autoloading all Relics from enabled mods, by searching for files ending with our specific file extension, such as
.rl2relic.json
or.rl2relic
. The issue with this is that there would be no way to disable loading them under some condition. Would also require enforcing theNote
Texture file name must be the same as the Relic JSON file name
rule, or providing optional parameters, one overload for providing paths, and one for Texture2D objects like this
Notes
Obsoletes loading
RelicData
from JSON proposed in #15The text was updated successfully, but these errors were encountered: