byond - Modules - TypesVar Details - Proc Details

interior

Vars

containercontainer that this interior is attached to; what we are the inside of
exit_callbackcallback to execute when we want to eject the mob
loaded_turfslist of all loaded turfs. we keep this around in case we need to update linkages or similar
occupantsoccupants that entered this interior through the intended way
reservationturf reservation where we will load our interior // TODO REPLACE ME WITH LAZYTEMPLATELOAD STUFF
templatemap template to load as the interior
this_areathe interior area. you should only be using 1 area for the whole thing, if you're not, make this support it lol

Procs

connect_atomsconnects all atoms as needed to the interior. seperate so it can be used in debugging
handle_area_leavewhen someone who entered the "proper" way leaves the area, remove them as an occupant without teleporting
handle_container_delcalled when parent container is deleted
handle_occupant_delcalled when a mob gets deleted while an occupant
init_mapactual inits the map, seperate proc because otherwise it fails linter due to "sleep in new" // TODO REPLACE ME WITH LAZYTEMPLATELOAD STUFF
mob_entercalled when we want to move a mob into the interior
mob_leavecalled when we want to remove a mob from the interior
on_container_entercalled when someone enters the container

Var Details

container

container that this interior is attached to; what we are the inside of

exit_callback

callback to execute when we want to eject the mob

loaded_turfs

list of all loaded turfs. we keep this around in case we need to update linkages or similar

occupants

occupants that entered this interior through the intended way

reservation

turf reservation where we will load our interior // TODO REPLACE ME WITH LAZYTEMPLATELOAD STUFF

template

map template to load as the interior

this_area

the interior area. you should only be using 1 area for the whole thing, if you're not, make this support it lol

Proc Details

connect_atoms

connects all atoms as needed to the interior. seperate so it can be used in debugging

handle_area_leave

when someone who entered the "proper" way leaves the area, remove them as an occupant without teleporting

handle_container_del

called when parent container is deleted

handle_occupant_del

called when a mob gets deleted while an occupant

init_map

actual inits the map, seperate proc because otherwise it fails linter due to "sleep in new" // TODO REPLACE ME WITH LAZYTEMPLATELOAD STUFF

mob_enter

called when we want to move a mob into the interior

mob_leave

called when we want to remove a mob from the interior

on_container_enter

called when someone enters the container