mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 06:04:23 +01:00
18 lines
406 B
Plaintext
18 lines
406 B
Plaintext
/// Create directional subtypes for a path to simplify mapping.
|
|
#define MAPPING_DIRECTIONAL_HELPERS(path, offset_y, offset_x) ##path/directional/north {\
|
|
dir = NORTH; \
|
|
pixel_y = offset_y; \
|
|
} \
|
|
##path/directional/south {\
|
|
dir = SOUTH; \
|
|
pixel_y = -offset_y; \
|
|
} \
|
|
##path/directional/east {\
|
|
dir = EAST; \
|
|
pixel_x = offset_x; \
|
|
} \
|
|
##path/directional/west {\
|
|
dir = WEST; \
|
|
pixel_x = -offset_x; \
|
|
}
|