Space Station 13 - Nebula13 - Modules - TypesDefine Details

code/__defines/turfs.dm

WORLD_CENTER_XHelper macro for the x coordinate of the turf at the center of the world. Handles rounding.
WORLD_CENTER_YHelper macro for the y coordinate of the turf at the center of the world. Handles rounding.
WORLD_CENTER_TURFHelper macro for getting the center turf on a given z-level. Handles rounding.
IS_WITHIN_WORLDHelper macro to check if a position is within the world's bounds.
WORLD_SIZE_TO_STRINGHelper macro for printing to text the world's x,y,z size to a string.

Define Details

IS_WITHIN_WORLD

Helper macro to check if a position is within the world's bounds.

WORLD_CENTER_TURF

Helper macro for getting the center turf on a given z-level. Handles rounding.

WORLD_CENTER_X

Helper macro for the x coordinate of the turf at the center of the world. Handles rounding.

WORLD_CENTER_Y

Helper macro for the y coordinate of the turf at the center of the world. Handles rounding.

WORLD_SIZE_TO_STRING

Helper macro for printing to text the world's x,y,z size to a string.