Files
Aurora.3/code/modules/random_map/mazes/maze_cell.dm
Fluffy 7265630dde Turn more unmanaged global vars into GLOB (#20446)
Turned a ton of unmanaged globals into managed globals.
Refactored some UT output.
Removed some unused things, including vars.
Added a test to ensure people don't keep adding new unmanaged vars.
2025-02-17 23:34:02 +00:00

19 lines
266 B
Plaintext

GLOBAL_VAR_INIT(maze_cell_count, 0)
/datum/maze_cell
var/name
var/uid
var/x
var/y
var/ox
var/oy
/datum/maze_cell/New(var/nx,var/ny,var/nox,var/noy)
GLOB.maze_cell_count++
uid = GLOB.maze_cell_count
name = "cell #[uid]"
x = nx
y = ny
ox = nox
oy = noy