mailsorter 
Vars | |
| 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. |
Procs | |
| 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. |
| crowbar_act | Deconstructing the mail sorter. |
| drop_all_mail | Drops all enevlopes on the machine turf. |
| 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. |
| screwdriver_act | Opening the maintenance panel. |
| sort_mail | Prompts 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.
crowbar_act
Deconstructing the mail sorter.
drop_all_mail
Drops all enevlopes on the machine turf.
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.
screwdriver_act
Opening the maintenance panel.
sort_mail
Prompts the player to select a department to sort the mail for. Returns if null.