Space Station 13 - Modules - Types — Var Details - Proc Details

lighting

Vars

update_stampGoes up by one every light source update. See /datum/controller/subsystem/lighting/proc/get_update_stamp

Procs

get_update_stampReturns a unique number for a light source update to stamp the corners it visits with. Lets update_corners() skip corners it has already seen without building an associative list.

Var Details

update_stamp

Goes up by one every light source update. See /datum/controller/subsystem/lighting/proc/get_update_stamp

Proc Details

get_update_stamp

Returns a unique number for a light source update to stamp the corners it visits with. Lets update_corners() skip corners it has already seen without building an associative list.

Wraps back to 1 before hitting LIGHTING_MAX_UPDATE_STAMP, and clears every corner's stamp when it does, so an old stamp can never match a new one. The clear is slow, but only happens every ~16.7 million updates.