bdd-creature/classes/beastfile.lua

14 lines
320 B
Lua
Raw Normal View History

2024-08-01 23:14:47 +02:00
local BeastFile = Object:extend()
local DataList = require "classes.datalist"
function BeastFile:new(folder, name)
self.filepath = folder .. "/" .. name
print("Loading " .. self.filepath)
self.datas = DataList()
end
function BeastFile:prepareJson()
return self.datas:prepareJson()
end
return BeastFile