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

camerachunk

A 16x16 grid of the map with a list of turfs that can be seen, are visible and are dimmed.
Allows Camera Eyes to stream these chunks and know what it can and cannot see.

Vars

active_static_imagesimages currently in use on obscured turfs.
camerascameras that can see into our grid indexed by the z level of the camera
obscuredTurfsturfs our cameras cant see but are inside our grid. associative list of the form: list(obscured turf = static image on that turf)
seenbyCamera mobs that can see turfs in our grid
turfslist of all turfs, associative with that turf's static image turf -> /image
update_sourcesList of atoms that caused the chunk to update - assoc atom ref() to opacity on queue
visibleTurfsturfs our cameras can see inside our grid

Procs

NewCreate a new camera chunk, since the chunks are made as they are needed.
addAdd a camera eye to the chunk, updating the chunk if necessary.
force_updateForces the chunk to update immediately
queue_updateQueues the chuck to be updated after a delay.
removeRemove a camera eye from the chunk
updateThe actual updating. It gathers the visible turfs from cameras and puts them into the appropiate lists.

Var Details

active_static_images

images currently in use on obscured turfs.

cameras

cameras that can see into our grid indexed by the z level of the camera

obscuredTurfs

turfs our cameras cant see but are inside our grid. associative list of the form: list(obscured turf = static image on that turf)

seenby

Camera mobs that can see turfs in our grid

turfs

list of all turfs, associative with that turf's static image turf -> /image

update_sources

List of atoms that caused the chunk to update - assoc atom ref() to opacity on queue

visibleTurfs

turfs our cameras can see inside our grid

Proc Details

New

Create a new camera chunk, since the chunks are made as they are needed.

add

Add a camera eye to the chunk, updating the chunk if necessary.

force_update

Forces the chunk to update immediately

queue_update

Queues the chuck to be updated after a delay.

remove

Remove a camera eye from the chunk

update

The actual updating. It gathers the visible turfs from cameras and puts them into the appropiate lists.