StaticAchievement
classAchievement progress record
Fields
| Name | Type | Description |
|---|---|---|
| delta | integer | Progress added by the last increment |
| total | integer | Accumulated progress |
| threshold | integer | Progress required to unlock |
| unlocked | boolean | Whether the achievement is unlocked |
| unlocked_time | number | Game time of the unlock |
| image | Texture | Achievement icon |
| steam_key | string | Steam achievement id |
| label | Loc | Localized name |
| description | Loc | Localized description |
Standard members (5)
Generated for every class of this kind by the game's codegen, not written for StaticAchievement.
| StaticAchievement.cast(object) | Trying to cast Object into StaticAchievement |
| StaticAchievement.get_class() | Return StaticAchievement class object |
| StaticAchievement.find(name) | Looks StaticAchievement up in db, nil when there is none |
| StaticAchievement.get(name) | Takes StaticAchievement from db, reports a miss to the log |
| StaticAchievement.reg(name) | Register a new StaticAchievement static object |
Inherited from Prototype (2)
- name Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object