Database = require("database") local BaseWorld = require("world.base") local World = class("World", BaseWorld) function World:__init() BaseWorld.__init(self) if self.hasEntry == nil then local test = Database:GetSingleValue("world_general", "currentMpNum", "") if test ~= nil then self.hasEntry = true else self.hasEntry = false end end end function World:CreateEntry() self:Save() self.hasEntry = true end function World:Save() Database:SaveWorld(self.data) end function World:Load() self.data = Database:LoadWorld(self.data) end return World