Files
4ab234f10c maploader / overmaps update - struct system, overmaps location bindings, misc backend improvements (#6403)
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>
2025-11-06 17:49:23 -08:00

61 lines
1.6 KiB
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2024 Citadel Station Developers *//
/**
* Contains loading / unloading logic.
*/
//* Loading *//
/**
* * called right after we physically load in, before init
* * called before atom init
* * multiz is set based on map struct here
*
* @params
* * z_index - zlevel we loaded on
* * out_generation_callbacks - callbacks to add to perform post-loaded generation. this will be done in a batch before on_loaded_finalize and before atom init.
*/
/datum/map_level/proc/on_loaded_immediate(z_index, list/datum/callback/out_generation_callbacks)
SHOULD_CALL_PARENT(TRUE)
/**
* * called in a group after all maps and dependencies load **and** generation callbacks fire.
* * called after atom init
* * multiz is built here
*
* @params
* * z_index - zlevel we loaded on
*/
/datum/map_level/proc/on_loaded_finalize(z_index)
SHOULD_CALL_PARENT(TRUE)
//* Unloading *//
/**
* TOOD: not hooked in yet
*
* Fired before zclear fires on the zlevels that consist of us
* * Called before /datum/map's hook
* * Multiz is torn down here
*
* @params
* * z_index - zlevel we loaded on
*/
/datum/map_level/proc/on_unload_pre_zclear(z_index)
SHOULD_CALL_PARENT(TRUE)
/**
* TOOD: not hooked in yet
*
* Fired after zclear fires on the zlevels that consist of us
* * Called before /datum/map's hook
* * We (along our map) are un-referenced and/or garbage collected (if necessary) after.
* * Multiz is unset here
*
* @params
* * z_index - zlevel we loaded on
*/
/datum/map_level/proc/on_unload_finalize(z_index)
SHOULD_CALL_PARENT(TRUE)