PowerHorse Engine
    Preparing search index...

    Type Alias GachaRegisterItem<T>

    type GachaRegisterItem<T extends "pass" | "product" = "pass" | "product"> = {
        bundle?: (GachaPass | number | string)[];
        gift?: (GachaProduct | number | string)[];
        id: number | string;
        name?: string;
        onReady?: (GachaPass: T extends "pass" ? GachaPass : GachaProduct) => void;
        processProductReceipt?: (
            receiptInfo: ReceiptInfo,
            processedByGacha: boolean,
        ) => Enum.ProductPurchaseDecision;
        proxypass?: boolean;
        requirespasses?: (GachaPass | number | string)[];
        type: T;
    }

    Type Parameters

    • T extends "pass" | "product" = "pass" | "product"
    Index

    Properties

    bundle?: (GachaPass | number | string)[]
    gift?: (GachaProduct | number | string)[]
    id: number | string
    name?: string
    onReady?: (GachaPass: T extends "pass" ? GachaPass : GachaProduct) => void
    processProductReceipt?: (
        receiptInfo: ReceiptInfo,
        processedByGacha: boolean,
    ) => Enum.ProductPurchaseDecision
    proxypass?: boolean

    Is it a DeveloperProduct disguised as a GamePass?

    requirespasses?: (GachaPass | number | string)[]
    type: T