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

        try
        {
            GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l);
            List <OrderReward>       allOrderRewards          = giftStoreComponentCommon.GetAllOrderRewards();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, allOrderRewards);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }