Interface IPromo
An IEntity that can be shown to the player when some conditions are met.
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IPromo : IEntity, IInjectable
Properties
PromoData
The IEntityData associated with this IPromo.
Declaration
IPromoData PromoData { get; }
Property Value
Type | Description |
---|---|
IPromoData |
PromoSavedData
The ISavedData associated with this IPromo.
Declaration
IPromoSavedData PromoSavedData { get; }
Property Value
Type | Description |
---|---|
IPromoSavedData |
Methods
GetExpiryTimestamp()
Gets the time that this IPromo will expire or has expired.
Declaration
long GetExpiryTimestamp()
Returns
Type | Description |
---|---|
Int64 |
IsActive()
Is the IPromo Within a valid time and stage.
Declaration
bool IsActive()
Returns
Type | Description |
---|---|
Boolean |
IsReadyToClaim()
Is the IPromo ready to be shown to the player.
Declaration
bool IsReadyToClaim()
Returns
Type | Description |
---|---|
Boolean |
UpdatePromoState()
Updates the internal IPromo's state as needed and fires appropriate
Declaration
void UpdatePromoState()