14 lines
No EOL
320 B
Lua
14 lines
No EOL
320 B
Lua
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 |