interior

Vars | |
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 |
Procs | |
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 |
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