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

camerachunk

Vars

active_static_imagesimages currently in use on obscured turfs.
camerascameras that can see into our grid
inactive_static_imagesimages created to represent obscured turfs
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
visibleTurfsturfs our cameras can see inside our grid

Procs

Newnew turfs that we couldnt see last update but can now turfs that we could see last update but cant see now Create a new camera chunk, since the chunks are made as they are needed.
addAdd an AI eye to the chunk, then update if changed.
hasChangedUpdates the chunk, makes sure that it doesn't update too much. If the chunk isn't being watched it will instead be flagged to update the next time an AI Eye moves near it.
removeRemove an AI eye from the chunk
updateThe actual updating. It gathers the visible turfs from cameras and puts them into the appropiate lists.
visibilityChangedCalled when a chunk has changed. I.E: A wall was deleted.

Var Details

active_static_images

images currently in use on obscured turfs.

cameras

cameras that can see into our grid

inactive_static_images

images created to represent obscured turfs

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

visibleTurfs

turfs our cameras can see inside our grid

Proc Details

New

new turfs that we couldnt see last update but can now turfs that we could see last update but cant see now Create a new camera chunk, since the chunks are made as they are needed.

add

Add an AI eye to the chunk, then update if changed.

hasChanged

Updates the chunk, makes sure that it doesn't update too much. If the chunk isn't being watched it will instead be flagged to update the next time an AI Eye moves near it.

remove

Remove an AI eye from the chunk

update

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

visibilityChanged

Called when a chunk has changed. I.E: A wall was deleted.