tModLoader v2025.08
A mod to make and play Terraria mods
CustomFlagCondition Class Reference

A custom boolean condition. Must be manually completed by calling AchievementCondition.Complete.

If multiple custom conditions are used for an achievement, a unique key should be provided. More...

Inherits AchievementCondition.

Public Member Functions

 CustomFlagCondition (string name)
 
- Public Member Functions inherited from AchievementCondition
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)
 

Additional Inherited Members

- Public Attributes inherited from AchievementCondition
readonly string Name
 
- Protected Member Functions inherited from AchievementCondition
 AchievementCondition (string name)
 
virtual IAchievementTracker CreateAchievementTracker ()
 
- Protected Attributes inherited from AchievementCondition
IAchievementTracker _tracker
 
- Properties inherited from AchievementCondition
bool IsCompleted [get]
 
- Events inherited from AchievementCondition
AchievementUpdate OnComplete
 

Detailed Description

A custom boolean condition. Must be manually completed by calling AchievementCondition.Complete.

If multiple custom conditions are used for an achievement, a unique key should be provided.