static int GetIntList(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); List <int> o = obj.GetIntList(arg0); LuaScriptMgr.PushObject(L, o); return(1); }