mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-17 02:27:12 +01:00
tl;dr level collections that can easily be logically restructured/moved as necessary will eventually be used for radio and overmaps location resolution. this is the last part of https://github.com/Citadel-Station-13/Citadel-Station-13-RP/pull/4841 that has not yet been integrated. this will be a draft for a while. --------- Co-authored-by: LetterN <24603524+LetterN@users.noreply.github.com>
16 lines
457 B
Plaintext
16 lines
457 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station Developers *//
|
|
|
|
/**
|
|
* get all turfs in the zstack up/down from the given turf.
|
|
*
|
|
* * This is ordered from bottom to top.
|
|
*/
|
|
/datum/controller/subsystem/mapping/proc/spatial_get_turf_stack(turf/T) as /list
|
|
var/list/stack = level_get_stack(T.z)
|
|
if(isnull(stack))
|
|
return list(T)
|
|
. = list()
|
|
for(var/z in stack)
|
|
. += locate(T.x, T.y, z)
|