Interface IStandardContentFeatures
A component interface utilize by the IStandardContent that provides additional functionality such as ITrade, IStoreTimedReward, and IBoost functionality that are common in idle games.
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IStandardContentFeatures : IInjectable
Properties
ActiveTrade
Returns the ITrade that is currently offered to the player.
Declaration
ITrade ActiveTrade { get; }
Property Value
Type | Description |
---|---|
ITrade |
CollectorEntities
Returns all ICollectorEntity controllers associated with this IStandardContentFeatures.
Declaration
ICollectorEntity[] CollectorEntities { get; }
Property Value
Type | Description |
---|---|
ICollectorEntity[] |
SoftCurrencyMissingResourcesMultiplier
Returns the missing resources IExchangeRateMultiplier used for soft currency.
Declaration
IExchangeRateMultiplier SoftCurrencyMissingResourcesMultiplier { get; }
Property Value
Type | Description |
---|---|
IExchangeRateMultiplier |
StoreTimedReward
Returns the IStoreTimedReward associated with this IStandardContentFeatures.
Declaration
IStoreTimedReward StoreTimedReward { get; }
Property Value
Type | Description |
---|---|
IStoreTimedReward |
Trades
Returns the ITrades used within the IStandardContent.
Declaration
ITrade[] Trades { get; }
Property Value
Type | Description |
---|---|
ITrade[] |
TradeTimerProgression
If there is currently no ActiveTrade, returns the progression until a new ITrade is activated, represented as a float between 0 and 1. When the progression reaches 1, RefreshTrade() is called.
Declaration
float TradeTimerProgression { get; }
Property Value
Type | Description |
---|---|
Single |
UpgradeableCurrencyMissingResourcesMultiplier
Returns the missing resources IExchangeRateMultiplier used for upgradeable currency.
Declaration
IExchangeRateMultiplier UpgradeableCurrencyMissingResourcesMultiplier { get; }
Property Value
Type | Description |
---|---|
IExchangeRateMultiplier |
VideoAdBoost
Returns the ITimedBoost associated with this IStandardContentFeatures.
Declaration
ITimedBoost VideoAdBoost { get; }
Property Value
Type | Description |
---|---|
ITimedBoost |
Methods
Cleanup(IEntityLoaderService)
Responsible for performing cleanup on the child IEntitys and other objects owned by this IStandardContentFeatures. It is important to perform Cleanup(IEntityLoaderService) to make sure there is no memory leak.
Declaration
void Cleanup(IEntityLoaderService entityLoaderService)
Parameters
Type | Name | Description |
---|---|---|
IEntityLoaderService | entityLoaderService |
Initialize()
Responsible for performing the setup logic including subscription to the IActions for this IStandardContentFeatures.
Declaration
void Initialize()
RefreshTrade()
Try to find a new ActiveTrade, a new valid ActiveTrade will be selected. If there is no valid ITrade to be activate, the TradeTimerProgression would be restarted.
Declaration
void RefreshTrade()