protected SessionData CreateSession(uint _callbackId, uint _serviceid, object _requestData) { SessionData sd = sessionDataList.Count > 0 ? sessionDataList.Dequeue() : new SessionData(); sd.Init(_callbackId, _serviceid, _requestData); return(sd); }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); GameFramework.SessionData obj = (GameFramework.SessionData)ToLua.CheckObject <GameFramework.SessionData>(L, 1); uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2); uint arg1 = (uint)LuaDLL.luaL_checknumber(L, 3); object arg2 = ToLua.ToVarObject(L, 4); obj.Init(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }