Files
ashlar/scripts/cell/sql.lua
T
David Cernat 3eedd96248 [General] Use the quicker saving method for most objects in most cases
As of now, only players and cells still use the slower saving method, and only when disconnecting or being fully unloaded respectively.

Additionally, rename the Save() and Load() methods into SaveToDisk() and LoadFromDisk() to reduce ambiguity and prevent them from being used all the time by new scripters.
2019-04-14 23:49:03 +03:00

28 lines
460 B
Lua

Database = require("database")
local BaseCell = require("cell.base")
local Cell = class("Cell", BaseCell)
function Cell:__init(cellDescription)
BaseCell.__init(self, cellDescription)
if self.hasEntry == nil then
-- Not implemented yet
end
end
function Cell:CreateEntry()
-- Not implemented yet
end
function Cell:SaveToDisk()
-- Not implemented yet
end
function Cell:LoadFromDisk()
-- Not implemented yet
end
return Cell