/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/_helpers.dm

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, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck

Define Details

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, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck