Files
FluffyandGitHub 4538e2a7cc Fix indentations (#17481)
* cbt

* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* fsadffsda sad

* sadfasd

* jhn

* dsfa

* saf

* safsad

* sda
2023-10-05 10:15:58 +00:00

25 lines
729 B
Plaintext

// CAMERA CHUNK
//
// A 16x16 grid of the map with a list of turfs that can be seen, are visible and are dimmed.
// Allows the Eye to stream these chunks and know what it can and cannot see.
/datum/chunk/camera/acquire_visible_turfs(var/list/visible)
for(var/source in sources)
if(istype(source, /obj/machinery/camera))
var/obj/machinery/camera/c = source
if(!c.can_use())
continue
for(var/turf/t in c.can_see())
visible[t] = t
else if(isAI(source))
var/mob/living/silicon/ai/AI = source
if (AI.stat == DEAD)
continue
for(var/T in seen_turfs_in_range(AI, world.view))
var/turf/t = T
visible[t] = t
else
log_visualnet("Contained an unhandled source", source)
sources -= source