I have a good data system right now but the problem is I dont know how I will actually handle the settings updates themselves.
Should I just store the functions for each setting in a module and find the function and run it when a specific setting gets updated? Cuz this is how I think it would be good, even though It could get messy as it builds up…
local settingsFunctions = {
["ShadowsEnabled"] = function(value)
if value == true then
-- ...
end
}
That does seem like a good approach. It can make for a lot of functions, but each option has it’s own function, and so it shouldn’t lead to a mess, just maybe a big script that is a combination of lots of small simple independent functions
You can always separate those functions in sub modules, and have a parent module that combines every sub module into a single table with every setting function