mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 06:46:41 +01:00
20 lines
457 B
Plaintext
20 lines
457 B
Plaintext
|
|
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2025 Citadel Station developers. *//
|
|
|
|
#define OBJ_BIND_ADJACENCY_GROUP(PATH, VARNAME, KEY) \
|
|
##PATH { \
|
|
var/datum/object_system/adjacency_group/##VARNAME; \
|
|
}; \
|
|
##PATH/Initialize(mapload, ...) { \
|
|
. = ..(); \
|
|
if(. == INITIALIZE_HINT_QDEL) { \
|
|
return; \
|
|
}; \
|
|
VARNAME = new(src, KEY); \
|
|
}; \
|
|
##PATH/Moved(...) { \
|
|
VARNAME.parent_moved(); \
|
|
return ..(); \
|
|
}
|