public static int GetRaffleItem(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l);
            RafflePool            pool;
            LuaObject.checkType <RafflePool>(l, 2, out pool);
            int raffleId;
            LuaObject.checkType(l, 3, out raffleId);
            RaffleItem raffleItem = raffleComponentCommon.GetRaffleItem(pool, raffleId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, raffleItem);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }