Space Station 13 - Modules - TypesDefine Details

code/__DEFINES/path_defines.dm

CANPATHFINDPASS_DENSITYIf set, we make the assumption that CanPathfindPass() will NEVER return FALSE unless density is true
CANPATHFINDPASS_ALWAYS_PROCIf this is set, we bypass density checks and always call the proc
CAN_STEPA helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. If you really want to optimize things, optimize this, cuz this gets called a lot. We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance

Define Details

CANPATHFINDPASS_ALWAYS_PROC

If this is set, we bypass density checks and always call the proc

CANPATHFINDPASS_DENSITY

If set, we make the assumption that CanPathfindPass() will NEVER return FALSE unless density is true

CAN_STEP

A helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. If you really want to optimize things, optimize this, cuz this gets called a lot. We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance