Show / Hide Table of Contents

    Interface IStoreReward

    A specific IStoreEntity that grants an IReward to the player when it is purchased using virtual currency in the Store.

    Inherited Members
    IStoreEntity.StoreEntityData
    IEntity.Id
    IEntity.Initialize()
    IEntity.Cleanup(IEntityLoaderService)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IStoreReward : IStoreEntity, IEntity, IInjectable

    Properties

    Reward

    Returns the component IReward that this IStoreReward grants when purchased.

    Declaration
    IReward Reward { get; }
    Property Value
    Type Description
    IReward

    StoreRewardData

    Returns the IStoreRewardData associated with this IStoreReward.

    Declaration
    IStoreRewardData StoreRewardData { get; }
    Property Value
    Type Description
    IStoreRewardData

    Methods

    Buy()

    Purchases the IStoreReward. Does nothing if CanBuy() returns false.

    Declaration
    void Buy()

    CanBuy()

    Returns true if the IStoreReward can be purchased by calling Buy().

    Declaration
    bool CanBuy()
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 East Side Games Inc.