Interface IMilestone
IMilestones are IActivatables used to track progression through a IEventContent. Once a IMilestone has been completed, its associated rewards can be claimed.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IMilestone : IActivatable, IEntity, IInjectable
Properties
CanClaim
Returns true if the IMilestone can be claimed
Declaration
bool CanClaim { get; }
Property Value
Type | Description |
---|---|
Boolean |
CurrentProgression
Returns the current progression amount for this IMilestone
Declaration
double CurrentProgression { get; }
Property Value
Type | Description |
---|---|
Double |
MilestoneData
Returns the IMilestoneData associated with this IMilestone.
Declaration
IMilestoneData MilestoneData { get; }
Property Value
Type | Description |
---|---|
IMilestoneData |
MilestoneSavedData
Returns the IMilestoneSavedData associated with this IMilestone.
Declaration
IMilestoneSavedData MilestoneSavedData { get; }
Property Value
Type | Description |
---|---|
IMilestoneSavedData |
NormalizedProgress
Returns the current progression as a normalized value (0 - 1)
Declaration
double NormalizedProgress { get; }
Property Value
Type | Description |
---|---|
Double |
TargetProgression
Returns the target progression amount for this IMilestone
Declaration
double TargetProgression { get; }
Property Value
Type | Description |
---|---|
Double |
Methods
Activate(Double)
Activates the IMilestone and sets the progression to initialProgress
Declaration
void Activate(double initialProgress)
Parameters
Type | Name | Description |
---|---|---|
Double | initialProgress |
Remarks
This can be called multiple times. Use this instead of Activate() when activating a milestone with initial overflow progress.