static int SignGM(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); string arg0 = ToLua.CheckString(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); string o = CenterServerManager.SignGM(arg0, arg1, arg2); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int SignGM(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 3); string userId = ToLua.CheckString(L, 1); int serverNo = (int)LuaDLL.luaL_checknumber(L, 2); int time = (int)LuaDLL.luaL_checknumber(L, 3); string str = CenterServerManager.SignGM(userId, serverNo, time); LuaDLL.lua_pushstring(L, str); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }