Space Station 13 - Modules - TypesVar Details - Proc Details

washing_machine

Vars

bloody_messIs the washing machine tub filled with gibs/blood? Effects the sprite it uses
color_sourceWhere is our DYE color coming from?
current_tub_capacityHow much shit is currently in this laundry machine? Used to cap how much stuff you can put in here
door_openIs the washer currently open?
inserted_itemsLAZYLIST of insert obj/item's inside the washer tub
inserted_mobsLAZYLIST of inserted mob/living's inside the washer tube
max_tub_capacityThe cap for how much stuff you can shove in here
wash_colorWhat DYE color are we dyeing stuff?
washingIs the washer in the middle of a wash cycle? Used to regulate certain interactions with the washer

Procs

calculate_tub_capacityCalculates the total capacity of the contents of the tub,
eject_tub_contentsMoves all Items/Mobs out of the laundry machine onto the Washing Machine's Loc, unregisters signals, then nulls the tracking lists
insert_item_into_tubHandles inserting obj/items into the washing machines, checks machines capacity, does a do_after, and then applys appropriate signals and updates machines state
insert_mob_into_tubHandles inserting mobs into the washing machines, checks machines capacity, does a do_after, and then applys appropriate signals and updates machines state
locate_color_sourceAttempts to locate stamps or crayons for dyeing purposes
update_washing_stateDetermines which "WM state" to apply based on if the machine is a bloody mess, full/empty, washing, etc and then updates the icon state accordingly

Var Details

bloody_mess

Is the washing machine tub filled with gibs/blood? Effects the sprite it uses

color_source

Where is our DYE color coming from?

current_tub_capacity

How much shit is currently in this laundry machine? Used to cap how much stuff you can put in here

door_open

Is the washer currently open?

inserted_items

LAZYLIST of insert obj/item's inside the washer tub

inserted_mobs

LAZYLIST of inserted mob/living's inside the washer tube

max_tub_capacity

The cap for how much stuff you can shove in here

wash_color

What DYE color are we dyeing stuff?

washing

Is the washer in the middle of a wash cycle? Used to regulate certain interactions with the washer

Proc Details

calculate_tub_capacity

Calculates the total capacity of the contents of the tub,

eject_tub_contents

Moves all Items/Mobs out of the laundry machine onto the Washing Machine's Loc, unregisters signals, then nulls the tracking lists

insert_item_into_tub

Handles inserting obj/items into the washing machines, checks machines capacity, does a do_after, and then applys appropriate signals and updates machines state

insert_mob_into_tub

Handles inserting mobs into the washing machines, checks machines capacity, does a do_after, and then applys appropriate signals and updates machines state

locate_color_source

Attempts to locate stamps or crayons for dyeing purposes

update_washing_state

Determines which "WM state" to apply based on if the machine is a bloody mess, full/empty, washing, etc and then updates the icon state accordingly