/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/_helpers.dm

ICON_SIZE_ALLThe game's world.icon_size.
Ideally divisible by 16.
Ideally a number, but it can be a string ("32x32"), so more exotic coders will be sad if you use this in math.
ICON_SIZE_XThe X/Width dimension of ICON_SIZE. This will more than likely be the bigger axis.
ICON_SIZE_YThe Y/Height dimension of ICON_SIZE. This will more than likely be the smaller axis.
STRINGIFYStringifies whatever you put into it.
subtypesofsubtypesof(), typesof() without the parent path
UNTILUntil a condition is true, sleep
SLEEP_NOT_DELSleep if we haven't been deleted Otherwise, return
text_refTakes a datum as input, returns its ref string
EMPTY_BLOCK_GUARDA null statement to guard against EmptyBlock lint without necessitating the use of pass() Used to avoid proc-call overhead. But use sparingly. Probably pointless in most places.

Define Details

EMPTY_BLOCK_GUARD

A null statement to guard against EmptyBlock lint without necessitating the use of pass() Used to avoid proc-call overhead. But use sparingly. Probably pointless in most places.

ICON_SIZE_ALL

The game's world.icon_size.
Ideally divisible by 16.
Ideally a number, but it can be a string ("32x32"), so more exotic coders will be sad if you use this in math.

ICON_SIZE_X

The X/Width dimension of ICON_SIZE. This will more than likely be the bigger axis.

ICON_SIZE_Y

The Y/Height dimension of ICON_SIZE. This will more than likely be the smaller axis.

SLEEP_NOT_DEL

Sleep if we haven't been deleted Otherwise, return

STRINGIFY

Stringifies whatever you put into it.

UNTIL

Until a condition is true, sleep

subtypesof

subtypesof(), typesof() without the parent path

text_ref

Takes a datum as input, returns its ref string