tModLoader v2024.10
A mod to make and play Terraria mods
AchievementCondition Class Reference

Inherited by CustomFlagCondition, CustomFloatCondition, CustomIntCondition, ItemCraftCondition, ItemPickupCondition, NPCKilledCondition, ProgressionEventCondition, and TileDestroyedCondition.

Public Member Functions

delegate void AchievementUpdate (AchievementCondition condition)
 
virtual void Clear ()
 
virtual void Complete ()
 
IAchievementTracker GetAchievementTracker ()
 
virtual void Load (JObject state)
 

Public Attributes

readonly string Name
 

Protected Member Functions

 AchievementCondition (string name)
 
virtual IAchievementTracker CreateAchievementTracker ()
 

Protected Attributes

IAchievementTracker _tracker
 

Properties

bool IsCompleted [get]
 

Events

AchievementUpdate OnComplete