/tg/ Station 13 - Modules - TypesVar Details - Proc Details

mailsorter

Vars

currentstateWhat the machine is currently doing. Can be "sorting", "idle", "yes", "no".
mail_listList of all mail that's inside the mailbox.
output_dirThe direction in which the mail will be unloaded.
sorting_departmentsList of the departments to sort the mail for.

Procs

accept_checkValidates whether the inserted item is acceptable.
check_sortedInforms the player of the amount of processed envelopes.
continue_sortSorts the mail based on the picked department. Ejects the sorted envelopes onto the unload_turf.
drop_all_mailDrops all enevlopes on the machine turf. Only occurs when the machine is broken.
dump_all_mailDumps all envelopes on the unload_turf.
get_unload_turfSteps one tile in the output_dir. Returns turf.
loadTries to load something into the machine.
pick_envelopeEjects a single envelope the player has picked onto the unload_turf.
pick_mailPrompts the user to select an anvelope from the list of all the envelopes inside.
sort_mailPrompts the player to select a department to sort the mail for. Returns if null.

Var Details

currentstate

What the machine is currently doing. Can be "sorting", "idle", "yes", "no".

mail_list

List of all mail that's inside the mailbox.

output_dir

The direction in which the mail will be unloaded.

sorting_departments

List of the departments to sort the mail for.

Proc Details

accept_check

Validates whether the inserted item is acceptable.

check_sorted

Informs the player of the amount of processed envelopes.

continue_sort

Sorts the mail based on the picked department. Ejects the sorted envelopes onto the unload_turf.

drop_all_mail

Drops all enevlopes on the machine turf. Only occurs when the machine is broken.

dump_all_mail

Dumps all envelopes on the unload_turf.

get_unload_turf

Steps one tile in the output_dir. Returns turf.

load

Tries to load something into the machine.

pick_envelope

Ejects a single envelope the player has picked onto the unload_turf.

pick_mail

Prompts the user to select an anvelope from the list of all the envelopes inside.

sort_mail

Prompts the player to select a department to sort the mail for. Returns if null.