aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/config
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
commit28affa22541b9ef251707793f6b1c1a26d663592 (patch)
tree622754894d75c74dc5e8516ccf184ad4bf328fef /gamemode/core/config
parentc639e7c7c6ab1595fdce39f56312e3d6a886bbe8 (diff)
downloadartery-28affa22541b9ef251707793f6b1c1a26d663592.tar.gz
artery-28affa22541b9ef251707793f6b1c1a26d663592.tar.bz2
artery-28affa22541b9ef251707793f6b1c1a26d663592.zip
Started on new npc system
Started work on the new npc system
Diffstat (limited to 'gamemode/core/config')
-rw-r--r--gamemode/core/config/sv_config.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/gamemode/core/config/sv_config.lua b/gamemode/core/config/sv_config.lua
index 6eb5394..2173dc0 100644
--- a/gamemode/core/config/sv_config.lua
+++ b/gamemode/core/config/sv_config.lua
@@ -8,12 +8,13 @@ local config = {}
local addons = {}
local function config_number(panel)
-
+ error("TODO")
end
local config_types = {
["number"] = config_number,
- "text",
- "textbox"
+ ["boolean"] = config_boolean,
+ ["option"] = config_option,
+ ["text"] = config_text,
}
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)))