/tg/ Station 13 - Modules - Types — Define Details

code/modules/unit_tests/~nova/graffiti/persistence.dm

/proc/graffiti_registry_test_beginEmpties the graffiti registry and points it at a scratch map file, with its sheets in the scratch directory too.
/proc/graffiti_registry_test_endEmpties the graffiti registry, takes the test room down (graffiti_test_room()), puts the registry's test settings back and deletes the scratch directory. The registry points at the current map's own file again but stays frozen, so nothing the rest of a test round does is written over it.
/proc/graffiti_test_artReturns a one-tile art with one or two red pixels.
GRAFFITI_TEST_ROOM_WIDTHThe graffiti test room's width and height, its walls included: 96 floors inside, past the caps test's 81
GRAFFITI_TEST_ROOM_ROWHow many walls stand side by side across the test room's floors
GRAFFITI_TEST_ROOM_ROW_XWhere that row's west end is, in tiles from the room's south-west corner
/proc/graffiti_test_roomReturns the room the graffiti tests paint in, built the first time a test asks and taken down by graffiti_registry_test_end(): walls round floors, with a row of GRAFFITI_TEST_ROOM_ROW walls across them, built on empty space of a station level and moved into a station area, so its every tile takes graffiti under a station anchor. No map is relied on to have such walls, as the unit test map, runtimestation_minimal, is all space. The room sits inside one of the 16-tile chunks build_sheets() packs together.
/proc/graffiti_test_room_endTakes the graffiti test room down, if a test put it up: deletes all a test left in it, then turns it back into the space of the space area it was.
/proc/graffiti_test_wallsReturns walls side by side, west to east, in the test room (graffiti_test_room()), each between two floors so that turning one into a floor opens no room to space, and with nothing wall-mounted on it or around it. The same walls come back every call.
/proc/graffiti_test_mountedWhether anything wall-mounted is on a wall or on the turfs beside it, where it may hang from the wall.
/proc/graffiti_test_camerasCounts the cameras on the station levels.
/proc/graffiti_test_floorsReturns floors of the test room (graffiti_test_room()), where graffiti gets a station anchor.
/proc/graffiti_test_placementFinds a placement by its id.
/proc/graffiti_test_index_problemCompares the registry's index of each account's placements with a scan of the placements themselves.
/datum/unit_test/graffiti_registry_capsAn account at its placement cap loses its oldest placement to its next one, a sixth piece on a tile buries the oldest for good, and a map at its placement cap or out of art bytes loses the lowest-ranked placement of an owner who isn't connected. New art for a placement meets the same caps, its own old art going with it, and with nothing else to go it is refused and the placement keeps its old art.
/proc/graffiti_test_dense_artReturns a one-tile art painted on every pixel, no two neighbours alike, from forty colours, every other pixel glowing, so its composite and glow mask take as many runs as a tile's art can. The same index gives the same art.
/proc/graffiti_test_chunk_turfsReturns tiles of the test room (graffiti_test_room()) that take graffiti under a station anchor, all in one of the 16-tile chunks build_sheets() packs together, the same ones every call.

Define Details

GRAFFITI_TEST_ROOM_ROW

How many walls stand side by side across the test room's floors

GRAFFITI_TEST_ROOM_ROW_X

Where that row's west end is, in tiles from the room's south-west corner

GRAFFITI_TEST_ROOM_WIDTH

The graffiti test room's width and height, its walls included: 96 floors inside, past the caps test's 81