blob: 8f8313bc027ee143b4a1559ed8998ed7f292a7e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
GMS.Resources = {}
function GMS.RegisterResource( tbl )
local sname = string.Replace(tbl.Name, " ", "_")
print("Registering " .. sname)
GMS.Resources[sname] = tbl
end
function GMS.GetItemByName(name)
if(GMS.Resources[name]) then
return GMS.Resources[name]
else
print("Resource " .. name .. " does not exist! This might be a bug!")
end
end
|