code/modules/unit_tests/~nova/graffiti/persistence.dm 
| /proc/graffiti_registry_test_begin | Empties the graffiti registry and points it at a scratch map file, with its sheets in the scratch directory too. |
|---|---|
| /proc/graffiti_registry_test_end | Empties 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_art | Returns a one-tile art with one or two red pixels. |
| GRAFFITI_TEST_ROOM_WIDTH | The graffiti test room's width and height, its walls included: 96 floors inside, past the caps test's 81 |
| 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 |
| /proc/graffiti_test_room | Returns 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_end | Takes 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_walls | Returns 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_mounted | Whether anything wall-mounted is on a wall or on the turfs beside it, where it may hang from the wall. |
| /proc/graffiti_test_cameras | Counts the cameras on the station levels. |
| /proc/graffiti_test_floors | Returns floors of the test room (graffiti_test_room()), where graffiti gets a station anchor. |
| /proc/graffiti_test_placement | Finds a placement by its id. |
| /proc/graffiti_test_index_problem | Compares the registry's index of each account's placements with a scan of the placements themselves. |
| /datum/unit_test/graffiti_registry_caps | An 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_art | Returns 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_turfs | Returns 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