SS1984 - Modules - TypesDefine Details

code/modules/lighting/lighting_source.dm

SETUP_CORNERS_CACHEThis exists so we can cache the vars used in this macro, and save MASSIVE time :) Most of this is saving off datum var accesses, tho some of it does actually cache computation. You will NEED to call this before you call APPLY_CORNER.
APPLY_CORNERMacro that applies light to a new corner. It is a macro in the interest of speed, yet not having to copy paste it. If you're wondering what's with the backslashes, the backslashes cause BYOND to not automatically end the line. As such this all gets counted as a single line. The braces and semicolons are there to be able to do this on a single line.
/proc/read_sheetDebug proc, for when lighting sheets fuck up Accepts the sheet (2 or 3 (multiz) dimensional list of lighting values at some offset) alongside x and y delta values and the sheet's "offset", which is the amount required to ensure everything indexes at 1 Optionally, you can pass similar values for multiz stuff

Define Details

APPLY_CORNER

Macro that applies light to a new corner. It is a macro in the interest of speed, yet not having to copy paste it. If you're wondering what's with the backslashes, the backslashes cause BYOND to not automatically end the line. As such this all gets counted as a single line. The braces and semicolons are there to be able to do this on a single line.

SETUP_CORNERS_CACHE

This exists so we can cache the vars used in this macro, and save MASSIVE time :) Most of this is saving off datum var accesses, tho some of it does actually cache computation. You will NEED to call this before you call APPLY_CORNER.