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 they can and cannot see.
Procs | |
New | Create a new camera chunk, since the chunks are made as they are needed. |
---|---|
add | Add a camera eye to the chunk, then update if changed. |
add_camera | Adds a camera to the chunk if it has not already been added. |
camera_moved | Handles each movement by a camera that has been added to the chunk. |
has_changed | 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 a camera eye moves near it. |
remove | Remove a camera eye from the chunk, then update if changed. |
remove_camera | Removes a camera from the chunk. |
update | Gathers the visible turfs from cameras and puts them into the appropiate lists. |
visibility_changed | Called when a chunk has changed. I.E: A wall was deleted. |
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, then update if changed.
add_camera
Adds a camera to the chunk if it has not already been added.
camera_moved
Handles each movement by a camera that has been added to the chunk.
has_changed
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 a camera eye moves near it.
remove
Remove a camera eye from the chunk, then update if changed.
remove_camera
Removes a camera from the chunk.
update
Gathers the visible turfs from cameras and puts them into the appropiate lists.
visibility_changed
Called when a chunk has changed. I.E: A wall was deleted.