/tg/ Station 13 - Modules - Types

modular_aphelion/modules/graffiti/code/anchors.dm

/proc/graffiti_static_stationWhether a turf is the station as the map built it, the only place graffiti goes: a station level's turf in a station area, neither a shuttle's nor the holodeck's, and outside every map template loaded on the station this round, such as a random room. Other levels, bitrunning and reserved space, ruins and the like take none. A system that loads spaces of its own, such as condos, registers an anchor resolver for them instead (graffiti_register_anchor_resolver()).
/proc/graffiti_register_anchor_resolverLets a system that loads its own spaces, such as condos, place graffiti in them: its anchors are resolved through callback, called with the anchor and returning a turf or null.
/proc/graffiti_registry_releaseTakes the graffiti of one unloading space off its tiles and keeps it dormant, still in the map file. Call it before the space's turfs change: a decal whose turf stops taking graffiti first loses its graffiti for good.
/proc/graffiti_station_levelsReturns the station levels in ascending order.
/proc/graffiti_station_ordinalReturns where a z level falls among the station levels, which anchors keep instead of the z level itself.
/proc/graffiti_station_zReturns the station level at an anchor's ordinal.
/proc/graffiti_anchor_forReturns where graffiti painted on a turf lives across rounds: a station anchor, the turf's coordinates and area, and its graffiti_surface_kind() as its surface.
/proc/graffiti_anchor_resolveReturns the turf an anchor names this round, when it is still the kind of surface the graffiti was painted on.
/proc/graffiti_anchor_waitsWhether an anchor that doesn't resolve is only waiting, so the round isn't counted as a miss: no system has registered a resolver for its kind this round.