Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
remove init from CommonEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
fztcjjl committed Nov 25, 2015
1 parent afbe201 commit 3da1a78
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions common/entitybase/CommonEntity.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local skynet = require "skynet"
local snax = require "snax"
local Entity = require "Entity"

-- CommonEntity
Expand All @@ -10,10 +9,6 @@ function CommonEntity:ctor()
self.type = 3
end

function CommonEntity:init()
self.pk, self.key, self.indexkey = skynet.call("dbmgr", "lua", "get_table_key", self.tbname, self.type)
end

-- 加载整张表数据
function CommonEntity:load()
if table.empty(self.recordset) then
Expand All @@ -27,12 +22,12 @@ end

--[[
-- 将内存中的数据先同步回redis,再从redis加载到内存(该方法要不要待定)
function CommonEntity:ReLoad()
function CommonEntity:reLoad()
end
-- 卸载整张表数据
function CommonEntity:UnLoad()
function CommonEntity:unLoad()
end
--]]
Expand Down

0 comments on commit 3da1a78

Please sign in to comment.