public static int GetAllExchangeMemoryEssence(IntPtr l) { int result; try { HeroFragmentBagItem heroFragmentBagItem = (HeroFragmentBagItem)LuaObject.checkSelf(l); int allExchangeMemoryEssence = heroFragmentBagItem.GetAllExchangeMemoryEssence(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allExchangeMemoryEssence); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }