Interface IStandardContent
IStandardContent extends the basic IContent but adds ITrade, IStoreTimedReward, and IBoost functionality that are common in idle games.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IStandardContent : IContent, IEntity, 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 |
StandardContentData
Returns the IStandardContentData associated with this IStandardContent.
Declaration
IStandardContentData StandardContentData { get; }
Property Value
Type | Description |
---|---|
IStandardContentData |
StandardContentFeatures
Returns the component IStandardContentFeatures that performs the logic of the StoreTimedReward, VideoAdBoost, and Trades.
Declaration
IStandardContentFeatures StandardContentFeatures { get; }
Property Value
Type | Description |
---|---|
IStandardContentFeatures |
StandardContentSavedData
Returns the IStandardContentSavedData associated with this IStandardContent.
Declaration
IStandardContentSavedData StandardContentSavedData { get; }
Property Value
Type | Description |
---|---|
IStandardContentSavedData |
StoreTimedReward
Returns the IStoreTimedReward associated with this IStandardContentFeatures.
Declaration
IStoreTimedReward StoreTimedReward { get; }
Property Value
Type | Description |
---|---|
IStoreTimedReward |
TradeCooldownDuration
Returns the duration of the cooldown period between ITrades being unlocked.
Declaration
long TradeCooldownDuration { get; }
Property Value
Type | Description |
---|---|
Int64 |
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
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()