Closed CptMoore closed 5 years ago
I've got a working prototype in feature branch merged into develop -- I had to do some major cleanup surgery that was a little overdue as well because things were getting very cluttered in ModTek.cs.
Cool, Ive looked through the api and that should do it, going to switch MechEngineer to it as en example
What happens with advanced json merges? You have to use a target id, but how are those defined for resources without a description.id ?
ID is first looked for in the JSON, but if nothing found then it defaults to file name without the extension.
A note, as well, mods will only get the resources that they ask for in their mod.json in their FinishedLoading method.
All of the names are placeholder for now.
ok, I'm using it with MechEngineer and CustomComponents and it works without issues
CC registers categories type, ME adds categories, CC processes them
In CustomComponents and MechEngineer, ME is adding new configuration entries to CC using static public methods of CC.
Since the base game is configured using json resources anyway (weapons, mechs), mods should have the ability to add custom resources that are handled similar to base game resources. Loading should also be done without a hard dll reference between mods.
The current solution direction discussed on discord is
Removal of resources would be appreciated but not necessary yet, see #38