New Structures Namespace to house Refueler, Neckro, Bat, and Spirit Pylons.
New Common Namespace to house classes common to multiple Namespaces/Classes
New ChebsRecipe class which can be used for any item/piece that has a recipe associated with it.
Removed SetRecipeReqs() and GetCustomPieceFromPrefab() from structures to the ChebsRecipe class to dedupe code.
Added new ModConfig() configuration settings constructor to BasePlugin for now.
ModConfig simplies setting configuration values and automatically appends [Synced with Server] or [Not Synced with Server] to the end of the description depending on whether you set serverSync to true or false.
This means the config sections will no longer be divided into Client/Server settings. Instead all "SpiritPylon" config options will be beneath [SpiritPylon] and the description will just annotate if it's client/server.
This kind of sucks cause clients will have to basically replace their configs/update them. So, we may want to change all of the config options to follow this format before we merge this so that users only have to deal with this once.
ModConfig has support for AcceptableValueBase classes such as AcceptableValueRange<> or AcceptableValueList<>.
A few default AcceptableValues have been set in BasePlugin for now. I intend to move everything related to configuration into it's own Class at some point and remove it from BasePlugin all together.
Testing and Debugging
The NeckroGathererPylon isn't showing up in the build menu for me.
Instead there are two RefulerPylons (One green one orange)
I also noticed that I had no resource cost for summoning armored minions or mages. As long as I had 1 core/metal on me I could just summon them forever. It did consume fragments/meat though. So, let me know if you see this as well.
These need to be investigated. Other than that....everything "appears" to be working ok.
Let me know if you want me to go ahead and convert all configuration options once you review this. Don't' really want to merge any of this to master until that is done so that we aren't messing with the config file over and over.
Notes and Changes
Testing and Debugging
These need to be investigated. Other than that....everything "appears" to be working ok.
Let me know if you want me to go ahead and convert all configuration options once you review this. Don't' really want to merge any of this to master until that is done so that we aren't messing with the config file over and over.