|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| delegate void | AchievementCompleted (Achievement achievement) |
| IAchievementTracker | GetTracker () |
| Achievement (string name) | |
| void | ClearProgress () |
| void | Load (Dictionary< string, JObject > conditions) |
| void | AddCondition (AchievementCondition condition) |
| void | UseTrackerFromCondition (string conditionName) |
| void | UseConditionsCompletedTracker () |
| void | UseConditionsCompletedTracker (params string[] conditions) |
| void | ClearTracker () |
| void | AddConditions (params AchievementCondition[] conditions) |
| AchievementCondition | GetCondition (string conditionName) |
| void | SetCategory (AchievementCategory category) |
Public Attributes | |
| readonly string | Name |
| readonly LocalizedText | FriendlyName |
| readonly LocalizedText | Description |
| readonly int | Id = _totalAchievements++ |
Properties | |
| AchievementCategory | Category [get] |
| bool | HasTracker [get] |
| bool | IsCompleted [get] |
Events | |
| AchievementCompleted | OnCompleted |
Private Member Functions | |
| void | OnConditionComplete (AchievementCondition condition) |
| void | UseTracker (IAchievementTracker tracker) |
| IAchievementTracker | GetConditionTracker (string name) |
Private Attributes | |
| AchievementCategory | _category |
| IAchievementTracker | _tracker |
| Dictionary< string, AchievementCondition > | _conditions = new Dictionary<string, AchievementCondition>() |
| int | _completedCount |
Static Private Attributes | |
| static int | _totalAchievements |
Definition at line 10 of file Achievement.cs.