summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/loadcraftables.lua
blob: 724401fbd3015c80d42dcfa000f4742465d4f77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)