PowerHorse Engine
    Preparing search index...

    Hierarchy

    • Pseudo
      • GachaProduct
    Index

    Constructors

    Properties

    Name: string = ...
    ProcessProductInfo:
        | undefined
        | (
            (
                CurrentProductInfo: GachaProductInfo,
                Inquirer?: Player,
            ) => GachaProductInfo
        ) = undefined

    Runs only after the main/root ProcessProductInfo is ran, passing the results as the second argument. Here you can modify it more to fit the current state of the GachaProduct.

    ProcessProductReceipt?: (
        receiptInfo: ReceiptInfo,
        processedByGacha: boolean,
    ) => ProductPurchaseDecision

    Used to process receipt for this Product, This should be used over .Purchased event, The Purchased event only fires after the ProcessProductReceipt ran, meaning you can still faill to award the Player.

    The Root level Gacha Module ProcessReceipt will be used if this isn't provided.

    ProcessPrompt:
        | undefined
        | (
            (
                Player: Player,
                ProductId: number,
                GachaProduct: GachaProduct,
            ) => number | void
        ) = undefined
    ProductId: number
    Purchased: Signal<
        (
            UserId: number,
            PlayerInGame?: Player,
            SubProductUsed?: { Name: string; ProductId: number },
        ) => void,
    >

    Methods

    • Useful in cases where you can have a discounted price for the product.

      The Purchased event for this GachaProduct will be fired if the SubProduct is Purchased.

      Parameters

      • ...args: [ProductId: number, Name: string]

      Returns GachaProduct

    • Parameters

      • OptionalnoCache: boolean

      Returns undefined | GamePassProductInfo | SubscriptionProductInfo

    • Parameters

      • Player: Player

      Returns void

    • Parameters

      • Player: Player

      Returns void