PowerHorse Engine
    Preparing search index...

    Hierarchy

    • Pseudo
      • GachaPass
    Index

    Constructors

    • Parameters

      • GamepassId: string | number
      • _Name: undefined | string = ...
      • ProxyPass: boolean = false

      Returns GachaPass

    Properties

    _BundleLinks: GachaPass[] = []
    AllowNonInventoryOwnedEntries: boolean = false

    This makes gacha allow users that may have deleted the Gamepass from their inventory to still have it in game.

    You must set this property immediately as it only does the check once per player whenever they join. If a player joins and this is false, the entry will be deleted and will not be recoverable. Changing this to true after an entry is removed from a Player will have no effect on them.

    GamepassId: string | number
    Giftable: boolean = false
    Gifted: Signal<(GiftInfo: GiftedPurchaseInfo) => void>
    IsSubscription: false
    MultiPurchase: boolean = false

    Only used if the Pass is a ProxyPass.

    OtherUsersCanQueryOwnership: undefined | boolean = undefined
    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.

    ProcessPrompt:
        | undefined
        | (
            (
                Player: Player,
                GamepassId: string | number,
                isProxy: boolean,
                GachaPass: GachaPass,
            ) => number | boolean | void
        ) = undefined
    ProxyPass: boolean = false
    Purchased: Signal<
        (
            Player: Player,
            wasGifted: false | GiftedPurchaseInfo,
            wasSubscriptionPurchase: boolean,
        ) => void,
    >

    Methods

    • Parameters

      • Player: Player
      • OptionalwasGfifted: false | GiftedPurchaseInfo
      • OptionalwasSubscriptionPurchase: boolean

      Returns void

    • Parameters

      • Callback: (Owner: Player, GachaBindedPass: GachaBindedPass) => usePropertyEffectCleanup

      Returns ServantNext

    • Parameters

      • Player: Player

      Returns boolean

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

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

      Parameters

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

      Returns GachaProduct

    • Parameters

      • Player: Player

      Returns {
          Bundled: GachaPass[];
          Gifted: { GifterId: number; GiftProduct: number; GiftTimestamp: number }[];
          IsBundled: boolean;
          Owned: boolean;
          OwnedTimestamp?: number;
          PurchaseCount?: number;
          PurchaseTimestamp?: number;
          Subscription?: boolean;
          WasGifted: boolean;
      }

    • Parameters

      • OptionalnoCache: boolean

      Returns undefined | GamePassProductInfo | ProductInfo | SubscriptionProductInfo

    • Parameters

      • Player: Player

      Returns boolean

    • Parameters

      • Player: Player

      Returns boolean

      boolean - If the prompt was successfully made.

    • Parameters

      • Player: Player

      Returns void

    • Parameters

      • Player: Player
      • OptionalGiftId: number
      • OptionalGifterId: number
      • MaximumRemoves: number = 30

      Returns void

    • Parameters

      • ...OtherPasses: (string | number | GachaPass)[]

      Returns void

    • Parameters

      • Player: Player

      Returns boolean