public static int CanFreeDraw(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); bool b = raffleComponentCommon.CanFreeDraw(pool); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }