Interface IEventContent
IEventContent is an extension of IContent that allows for tracking progression with IMilestones. IEventContent works with IEventSettings to allow progression towards IReward defined in IMilestones.
Inherited Members
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IEventContent : IContent, IEntity, IInjectable
Properties
activeMilestone
Declaration
[Obsolete("Deprecated in version 1.3, use GetCurrentMilestone() instead.", true)]
IMilestone activeMilestone { get; }
Property Value
Type | Description |
---|---|
IMilestone |
eventContentData
Returns the IEventContentData associated with this IEventContent.
Declaration
IEventContentData eventContentData { get; }
Property Value
Type | Description |
---|---|
IEventContentData |
eventContentSavedData
Declaration
[Obsolete("Deprecated in version 1.3, use IContent.contentSavedData instead.", true)]
IEventContentSavedData eventContentSavedData { get; }
Property Value
Type | Description |
---|---|
IEventContentSavedData |
milestones
Returns a list of IMilestones associated with this IEventContent.
Declaration
IMilestone[] milestones { get; }
Property Value
Type | Description |
---|---|
IMilestone[] |
Methods
GetCurrentMilestone()
Returns the current IMilestone in this IEventContent. Returns null otherwise.
Declaration
IMilestone GetCurrentMilestone()
Returns
Type | Description |
---|---|
IMilestone |
Remarks
The IMilestone return may not have been isActive.
GetCurrentMilestoneIndex()
Returns the index of the current IMilestone in this IEventContent. This is useful for UI to display the milestone progression.
Declaration
int GetCurrentMilestoneIndex()
Returns
Type | Description |
---|---|
Int32 | The index of the current IMilestone that the user is on. Returns -1 otherwise. |