camerachunk

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