diff options
Diffstat (limited to 'gamemode/core/config/sv_config.lua')
| -rw-r--r-- | gamemode/core/config/sv_config.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gamemode/core/config/sv_config.lua b/gamemode/core/config/sv_config.lua new file mode 100644 index 0000000..6eb5394 --- /dev/null +++ b/gamemode/core/config/sv_config.lua @@ -0,0 +1,25 @@ +--[[ + Allows addons to add config settings for easy manipulation +]] + +local config = {} + +--Master list of addons, and the config for each +local addons = {} + +local function config_number(panel) + +end +local config_types = { + ["number"] = config_number, + "text", + "textbox" +} +function config.RegisterConfig(name,t,func) + assert(config_types[t],string.format("Attempted to register unknown config type %q, allowed types are %s"),t,table.concat(table.GetKeys(config_types))) + local tb = debug.getinfo(-1,"flnSu") + print("Debug info was:") + PrintTable(tb) +end + +return config |
