diff options
Diffstat (limited to 'gamemode/craftablesystem/loadcraftables.lua')
| -rw-r--r-- | gamemode/craftablesystem/loadcraftables.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gamemode/craftablesystem/loadcraftables.lua b/gamemode/craftablesystem/loadcraftables.lua new file mode 100644 index 0000000..724401f --- /dev/null +++ b/gamemode/craftablesystem/loadcraftables.lua @@ -0,0 +1,28 @@ +//Loads all the craftable things in the game! to make a new craftable, create a new file in any of playermade/ craftingtables/ workbenches/ or misc/, they will get automatically included + +GMS.Combinations = {} +function GMS.RegisterCombi( tbl, group ) + if ( !GMS.Combinations[ group ] ) then GMS.Combinations[ group ] = {} end + GMS.Combinations[ group ][ string.Replace( tbl.Name, " ", "_" ) ] = tbl +end + +/* +local folderpath = "gamemodes/" .. GM.GAMEMODE_FOLDER_NAME .. "/gamemode/craftablesystem/playermade/" +print("Attempting to load folderpath " .. folderpath) +local files, directories = file.Find(folderpath .. "*", "MOD") +print("Files:") +PrintTable(files) +print("Directories:") +PrintTable(directories) +if(recursive) then + for k,v in pairs(directories) do + addResourceFolder(folderstring..v,recursive) + end +end +for k,v in pairs(files) do + include(folderstring .. "/".. v) +end +*/ +--include("craftablesystem/playermade/concrete.lua") +--include("playermade/concrete.lua") +--includeFolder("craftablesystem/playermade",false) |
