Daedalus Dock - Modules - TypesVar Details - Proc Details

record

Vars

fieldsThe data
libraryA ref to the library we're contained in.

Procs

CopyCreates a copy of the record, without it's library.
get_front_photoA helper proc to get the front photo of a character from the record. Handles calling get_photo(), read its documentation for more information.
get_photoYou shouldn't be calling this directly, use get_front_photo() or get_side_photo() instead.
get_side_photoA helper proc to get the side photo of a character from the record. Handles calling get_photo(), read its documentation for more information.

Var Details

fields

The data

library

A ref to the library we're contained in.

Proc Details

Copy

Creates a copy of the record, without it's library.

get_front_photo

A helper proc to get the front photo of a character from the record. Handles calling get_photo(), read its documentation for more information.

get_photo

You shouldn't be calling this directly, use get_front_photo() or get_side_photo() instead.

This is the proc that handles either fetching (if it was already generated before) or generating (if it wasn't) the specified photo from the specified record. This is only intended to be used by records that used to try to access fields["photo_front"] or fields["photo_side"], and will return an empty icon if there isn't any of the necessary fields.

Arguments:

Returns an empty /icon if there was no character_appearance entry in the fields list, returns the generated/cached photo otherwise.

get_side_photo

A helper proc to get the side photo of a character from the record. Handles calling get_photo(), read its documentation for more information.