mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 14:17:12 +01:00
14deaa41ed
This removes code/__DEFINES/misc.dm and moves all the defines to either: another existing define file new define file local .dm file if the define was only used in one file I also deleted defines that were not being used and added documentation to all of the ones that were moved out of misc.dm Why was this needed? People were basically using the misc.dm file as a dumpster to toss all their defines into that was creating one giant mess. The defines have been organized into their proper groups and files now.
36 lines
924 B
Plaintext
36 lines
924 B
Plaintext
// Byond direction defines, because I want to put them somewhere.
|
|
// #define NORTH 1
|
|
// #define SOUTH 2
|
|
// #define EAST 4
|
|
// #define WEST 8
|
|
|
|
/// North direction as a string "[1]"
|
|
#define TEXT_NORTH "[NORTH]"
|
|
/// South direction as a string "[2]"
|
|
#define TEXT_SOUTH "[SOUTH]"
|
|
/// East direction as a string "[4]"
|
|
#define TEXT_EAST "[EAST]"
|
|
/// West direction as a string "[8]"
|
|
#define TEXT_WEST "[WEST]"
|
|
|
|
/// Inverse direction, taking into account UP|DOWN if necessary.
|
|
#define REVERSE_DIR(dir) ( ((dir & 85) << 1) | ((dir & 170) >> 1) )
|
|
|
|
/// Create directional subtypes for a path to simplify mapping.
|
|
#define MAPPING_DIRECTIONAL_HELPERS(path, offset) ##path/directional/north {\
|
|
dir = NORTH; \
|
|
pixel_y = offset; \
|
|
} \
|
|
##path/directional/south {\
|
|
dir = SOUTH; \
|
|
pixel_y = -offset; \
|
|
} \
|
|
##path/directional/east {\
|
|
dir = EAST; \
|
|
pixel_x = offset; \
|
|
} \
|
|
##path/directional/west {\
|
|
dir = WEST; \
|
|
pixel_x = -offset; \
|
|
}
|