Shiptest 13 - Modules - TypesVar Details - Proc Details

cameranet

Vars

camerasThe cameras on the map, no matter if they work or not. Updated in obj/machinery/camera.dm by New() and Del().
chunksThe chunks of the map, mapping the areas that the cameras can see.
obscuredThe image given to the effect in vis_contents on AI clients
statclickThe object used for the clickable stat() button.
vis_contents_objectsThe objects used in vis_contents of obscured turfs

Procs

addCameraAdd a camera to a chunk.
bareMajorChunkChangeA faster, turf only version of /datum/cameranet/proc/majorChunkChange For use in sensitive code, be careful with it
checkCameraVisWill check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.
chunkGeneratedChecks if a chunk has been Generated in x, y, z.
getCameraChunkReturns the chunk in the x, y, z. If there is no chunk, it creates a new chunk and returns that.
majorChunkChangeNever access this proc directly!!!! This will update the chunk and all the surrounding chunks. It will also add the atom to the cameras list if you set the choice to 1. Setting the choice to 0 will remove the camera from the chunks. If you want to update the chunks around an object, without adding/removing a camera, use choice 2.
removeCameraRemoves a camera from a chunk.
updatePortableCameraUsed for Cyborg cameras. Since portable cameras can be in ANY chunk.
updateVisibilityUpdates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.
visibilityUpdates what the aiEye can see. It is recommended you use this when the aiEye moves or it's location is set.

Var Details

cameras

The cameras on the map, no matter if they work or not. Updated in obj/machinery/camera.dm by New() and Del().

chunks

The chunks of the map, mapping the areas that the cameras can see.

obscured

The image given to the effect in vis_contents on AI clients

statclick

The object used for the clickable stat() button.

vis_contents_objects

The objects used in vis_contents of obscured turfs

Proc Details

addCamera

Add a camera to a chunk.

bareMajorChunkChange

A faster, turf only version of /datum/cameranet/proc/majorChunkChange For use in sensitive code, be careful with it

checkCameraVis

Will check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.

chunkGenerated

Checks if a chunk has been Generated in x, y, z.

getCameraChunk

Returns the chunk in the x, y, z. If there is no chunk, it creates a new chunk and returns that.

majorChunkChange

Never access this proc directly!!!! This will update the chunk and all the surrounding chunks. It will also add the atom to the cameras list if you set the choice to 1. Setting the choice to 0 will remove the camera from the chunks. If you want to update the chunks around an object, without adding/removing a camera, use choice 2.

removeCamera

Removes a camera from a chunk.

updatePortableCamera

Used for Cyborg cameras. Since portable cameras can be in ANY chunk.

updateVisibility

Updates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.

visibility

Updates what the aiEye can see. It is recommended you use this when the aiEye moves or it's location is set.