Work on cart loading
This commit is contained in:
parent
fbf54ffb87
commit
06be52df0b
|
@ -0,0 +1,16 @@
|
|||
local Cart = {
|
||||
code = function() return function() end, function() end end
|
||||
}
|
||||
|
||||
function Cart:new(o)
|
||||
o = o or {}
|
||||
setmetatable(o,self)
|
||||
self.__index = self
|
||||
return o
|
||||
end
|
||||
|
||||
function Cart:loadCart(s)
|
||||
local ret = self:new()
|
||||
if not love.filesystem.getInfo(s,"file") then return ret end
|
||||
return ret
|
||||
end
|
Loading…
Reference in New Issue