file: Achievement.aus

class: Achievement

[17:7] extends: FxObj

Wraps FXGL's Achievement, a value type identified by name with a description and a (varName, varValue) trigger. When the named world property reaches varValue (greater-than-or-equal for ints and doubles, equality for booleans), the achievement unlocks. Achievements must be registered via GameSettings before the engine starts; see fxgl.GameSettings.getAchievements (added in chunk 6 deferred test patterns) for the registration path.

Methods