Interface IStandardContent
IStandardContent extends the basic IContent but adds ITrade, ITimedReward, and IBoost functionality that are common in idle games.
Inherited Members
Namespace: IdleKit.Framework
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 timedReward, 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 |
timedReward
Returns the ITimedReward associated with this IStandardContentFeatures.
Declaration
ITimedReward timedReward { get; }
Property Value
Type | Description |
---|---|
ITimedReward |
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()