![]() |
tModLoader v2025.08
A mod to make and play Terraria mods
|
A custom condition that tracks a float value. Must be manually adjusted by incrementing Value directly. The condition will complete automatically when the supplied max value is reached.
If multiple custom conditions are used for an achievement, a unique key should be provided.
More...
Inherits AchievementCondition.
Public Member Functions | |
CustomFloatCondition (string name, float maxValue) | |
override void | Clear () |
override void | Complete () |
override void | Load (JObject state) |
![]() | |
delegate void | AchievementUpdate (AchievementCondition condition) |
virtual void | Clear () |
virtual void | Complete () |
IAchievementTracker | GetAchievementTracker () |
virtual void | Load (JObject state) |
Static Public Member Functions | |
static AchievementCondition | Create (string name, float maxValue) |
Protected Member Functions | |
override IAchievementTracker | CreateAchievementTracker () |
![]() | |
AchievementCondition (string name) | |
virtual IAchievementTracker | CreateAchievementTracker () |
Properties | |
float | Value [get, set] |
![]() | |
bool | IsCompleted [get] |
Additional Inherited Members | |
![]() | |
readonly string | Name |
![]() | |
IAchievementTracker | _tracker |
![]() | |
AchievementUpdate | OnComplete |
A custom condition that tracks a float value. Must be manually adjusted by incrementing Value directly. The condition will complete automatically when the supplied max value is reached.
If multiple custom conditions are used for an achievement, a unique key should be provided.
|
virtual |
Reimplemented from AchievementCondition.
|
virtual |
Reimplemented from AchievementCondition.
|
protectedvirtual |
Reimplemented from AchievementCondition.
|
virtual |
Reimplemented from AchievementCondition.