mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-11 19:21:22 +00:00
47 lines
870 B
Plaintext
47 lines
870 B
Plaintext
GLOBAL_LIST_INIT(map_orientation_patterns, list(
|
|
TEXT_NORTH = new /datum/map_orientation_pattern/north,
|
|
TEXT_SOUTH = new /datum/map_orientation_pattern/south,
|
|
TEXT_EAST = new /datum/map_orientation_pattern/east,
|
|
TEXT_WEST = new /datum/map_orientation_pattern/west
|
|
))
|
|
|
|
/datum/map_orientation_pattern
|
|
var/invert_x
|
|
var/invert_y
|
|
var/swap_xy
|
|
var/xi
|
|
var/yi
|
|
var/turn_angle
|
|
|
|
/datum/map_orientation_pattern/north
|
|
invert_y = TRUE
|
|
invert_x = TRUE
|
|
swap_xy = FALSE
|
|
xi = -1
|
|
yi = 1
|
|
turn_angle = 180
|
|
|
|
/datum/map_orientation_pattern/south
|
|
invert_y = FALSE
|
|
invert_x = FALSE
|
|
swap_xy = FALSE
|
|
xi = 1
|
|
yi = -1
|
|
turn_angle = 0
|
|
|
|
/datum/map_orientation_pattern/east
|
|
invert_y = TRUE
|
|
invert_x = FALSE
|
|
swap_xy = TRUE
|
|
xi = 1
|
|
yi = 1
|
|
turn_angle = 90
|
|
|
|
/datum/map_orientation_pattern/west
|
|
invert_y = FALSE
|
|
invert_x = TRUE
|
|
swap_xy = TRUE
|
|
xi = -1
|
|
yi = -1
|
|
turn_angle = 270
|