Space Station 13 - Modules - TypesProc 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 they can and cannot see.

Procs

NewCreate a new camera chunk, since the chunks are made as they are needed.
addAdd a camera eye to the chunk, then update if changed.
add_cameraAdds a camera to the chunk if it has not already been added.
camera_movedHandles each movement by a camera that has been added to the chunk.
has_changedUpdates 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.
removeRemove a camera eye from the chunk, then update if changed.
remove_cameraRemoves a camera from the chunk.
updateGathers the visible turfs from cameras and puts them into the appropiate lists.
visibility_changedCalled 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.