World ownership
Source: src/dungeon_map.c · 15 lines · 2 functions.
Module responsibility
Owns and initialises the in-memory DungeonWorld structure shared by generation, play and storage.
Module entry points
These functions are exposed to the rest of the Dungeon system. Open one to follow its decisions and helper calls.
How to read these diagrams
Each function has an expandable structural diagram derived from the current C source. Decisions split into True and False, loop bodies are indented, and arrows show statement order.
These are source diagrams before preprocessing, not runtime traces. Callback execution, task scheduling and macro expansion are not inferred.
Functions in this file
initDungeonMap() · source line 7
void initDungeonMap(void)
- Execute
memset(&dungeon_world, 0, sizeof(dungeon_world));
Read original function source
void initDungeonMap(void)
{
memset(&dungeon_world, 0, sizeof(dungeon_world));
}getDungeonWorld() · source line 12
DungeonWorld *getDungeonWorld(void)
- Exit this function
return &dungeon_world;
Read original function source
DungeonWorld *getDungeonWorld(void)
{
return &dungeon_world;
}Complete original file, including constants and data
/* Coded By JD(2026) */
#error "Reference listing only — not provided as build-ready source."
#include "dungeon_map.h"
#include "esp_attr.h"
#include <string.h>
EXT_RAM_BSS_ATTR static DungeonWorld dungeon_world;
void initDungeonMap(void)
{
memset(&dungeon_world, 0, sizeof(dungeon_world));
}
DungeonWorld *getDungeonWorld(void)
{
return &dungeon_world;
}