record
Vars | |
fields | The data |
---|---|
library | A ref to the library we're contained in. |
Procs | |
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. |
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. |
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:
- field_name - The name of the key in the
fields
list, of the record itself. - orientation - The direction in which you want the character appearance to be rotated in the outputed photo.
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.