gConfig - An open source configuration effort
I posted this in Facepunch WAYWO but I figured it makes sense to post here as well. This is an effort to bring a configuration system that all addon creators should be able to use. Currently I haven't done anything but an outline of what I envision the library will look like, and I'm here to receive your comments on the library before I start putting work into it. Does it suit most/all of your needs? If not, what is missing?
Please take a look at the Github repository I made. https://github.com/Donkie/gConfig
Feel free to add me on steam or hit me up on Discord @ Donkie#2878 if you want to discuss this.
this is great
Curious - why are you using a variable for realm instead of an ENUM? It seems like you could simplify it if you did something like GCONFIG_REALM_SERVER. Just nitpicking but just my preference.
Now my main thing is I assume this has some use outside of just the config file, perhaps I can do gConfig.get('example'):setValue('examplecon', 5) and set the config value for the player on the clientside so that way it makes it just that bit easier to change values, same goes for serverside? Otherwise I don't see the point of having a description in there.
They are enums, just under a namespace to not pollute the global namespace.
The gConfig addon is going to include a GUI to edit all the registered addon's config variables. Hence the pretty name and description.