static int GetInt(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); int o = obj.GetInt(arg0); LuaScriptMgr.Push(L, o); return(1); }