sargedev / bettersettings

Add improved settings namespace blocks that support more verbose datatypes
0 stars 1 forks source link

Namespace support #1

Open UnsignedArduino opened 1 year ago

UnsignedArduino commented 1 year ago

Would be cool if you could separate settings by namespace. This would make multiple save files in games much less tedious. This shouldn't be hard to implement as well, because you just have to append the namespace name to the setting internally, and maybe keep a string list of all the namespaces available.

sargedev commented 1 year ago

So, like save data groups where each group can store the settings with the same name separately? Also, would this be implemented by making those namespaces from a string or enum?

UnsignedArduino commented 1 year ago

So, like save data groups where each group can store the settings with the same name separately?

Ya. So I can have for example two settings with the name maxLevel with two different values, in two different namespaces.

Also, would this be implemented by making those namespaces from a string or enum?

Strings IMO.

sargedev commented 1 year ago

Ok, that was just to clarify. Thanks for the suggestion, it is a smart idea. I'll most likely do a refactor soon anyway, where settings will be interactable objects that only get converted into a lower level datatype when saving. Also, I agree that strings would work better