adventure_db_entry

Vars | |
approved | Unapproved adventures won't be used for exploration sites. |
---|---|
id | db id or null for freshly created adventures |
name | adventure name |
placed | Was the adventure used for exploration site this round. |
raw_json | actual adventure json string |
required_site_traits | required site traits to use this adventure |
timestamp | Time of last change. |
uploader | ckey of last change user. |
version | json version |
Procs | |
create_adventure | Creates new adventure instance |
extract_metadata | Extracts fields that are used by adventure browser / generation before instantiating |
refresh | Updates this entry from db, if possible. |
remove | Deletes the local AND db entry. |
save | Pushes this entry changes to DB |
try_loading_adventure | Parses adventure JSON and returns /datum/adventure instance on success |
valid_for_use | Check if the adventure usable for given exploration site traits |
Var Details
approved

Unapproved adventures won't be used for exploration sites.
id

db id or null for freshly created adventures
name

adventure name
placed

Was the adventure used for exploration site this round.
raw_json

actual adventure json string
required_site_traits

required site traits to use this adventure
timestamp

Time of last change.
uploader

ckey of last change user.
version

json version
Proc Details
create_adventure
Creates new adventure instance
extract_metadata
Extracts fields that are used by adventure browser / generation before instantiating
refresh
Updates this entry from db, if possible.
remove
Deletes the local AND db entry.
save
Pushes this entry changes to DB
try_loading_adventure
Parses adventure JSON and returns /datum/adventure instance on success
valid_for_use
Check if the adventure usable for given exploration site traits