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

camerachunk

Vars

camerascameras that can see into our grid
obscuredTurfsturfs our cameras cant see but are inside our grid
seenbycamera mobs that can see turfs in our grid
turfslist of all turfs
visibleTurfsturfs our cameras can see inside our grid

Procs

NewCreate 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, then update if changed.
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

cameras

cameras that can see into our grid

obscuredTurfs

turfs our cameras cant see but are inside our grid

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

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, then update if changed.

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.