public static int IsLevelFinished(IntPtr l) { int result; try { DataSectionTreasureMap dataSectionTreasureMap = (DataSectionTreasureMap)LuaObject.checkSelf(l); int levelId; LuaObject.checkType(l, 2, out levelId); bool b = dataSectionTreasureMap.IsLevelFinished(levelId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }