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.
28 lines
460 B
Lua
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
|