White Sands - Modules - TypesVar Details - Proc Details

/datum/achievement_data

Datum that handles

Vars

dataUp to date list of all achievements and their info.
initializedHave we done our set-up yet?
original_cached_dataOriginal status of achievement.
owner_ckeyCkey of this achievement data's owner

Procs

get_achievement_statusGetter for the status/score of an achievement
get_changed_dataGets list of changed rows in MassInsert format
get_dataUpdates local cache with db data for the given achievement type if it wasn't loaded yet.
resetResets an achievement to default values.
unlockUnlocks an achievement of a specific type.

Var Details

data

Up to date list of all achievements and their info.

initialized

Have we done our set-up yet?

original_cached_data

Original status of achievement.

owner_ckey

Ckey of this achievement data's owner

Proc Details

get_achievement_status

Getter for the status/score of an achievement

get_changed_data

Gets list of changed rows in MassInsert format

get_data

Updates local cache with db data for the given achievement type if it wasn't loaded yet.

reset

Resets an achievement to default values.

unlock

Unlocks an achievement of a specific type.