Work on cart loading

This commit is contained in:
Robert Miles 2018-07-23 23:17:02 -04:00
parent fbf54ffb87
commit 06be52df0b
1 changed files with 16 additions and 0 deletions

16
src/cart.lua Normal file
View File

@ -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