yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
atlas_json.h
Go to the documentation of this file.
1
#ifndef YAZE_ZELDA3_ATLAS_ATLAS_JSON_H_
2
#define YAZE_ZELDA3_ATLAS_ATLAS_JSON_H_
3
4
// Atlas model -> JSON (schema "yaze.atlas.dungeon/1"). This is the
5
// `z3ed atlas-render --json` output and the golden-test surface. The output
6
// is deterministic: no timestamps, and paths only where the caller passes
7
// them in DungeonAtlasJsonContext.
8
9
#include <string>
10
11
#include "
zelda3/atlas/dungeon_atlas.h
"
12
13
namespace
yaze::zelda3::atlas
{
14
15
inline
constexpr
char
kDungeonAtlasJsonSchema
[] =
"yaze.atlas.dungeon/1"
;
16
17
struct
DungeonAtlasJsonContext
{
18
std::string
project
;
// Project file as given, empty = none.
19
std::string
generator
;
// For example "z3ed 0.8.0".
20
};
21
22
std::string
DungeonAtlasToJson
(
const
DungeonAtlas
& atlas,
23
const
DungeonAtlasJsonContext
& context = {},
24
int
indent = 1);
25
26
}
// namespace yaze::zelda3::atlas
27
28
#endif
// YAZE_ZELDA3_ATLAS_ATLAS_JSON_H_
dungeon_atlas.h
yaze::zelda3::atlas
Definition
atlas_annotations.cc:16
yaze::zelda3::atlas::DungeonAtlasToJson
std::string DungeonAtlasToJson(const DungeonAtlas &atlas, const DungeonAtlasJsonContext &context, int indent)
Definition
atlas_json.cc:72
yaze::zelda3::atlas::kDungeonAtlasJsonSchema
constexpr char kDungeonAtlasJsonSchema[]
Definition
atlas_json.h:15
yaze::zelda3::atlas::DungeonAtlasJsonContext
Definition
atlas_json.h:17
yaze::zelda3::atlas::DungeonAtlasJsonContext::generator
std::string generator
Definition
atlas_json.h:19
yaze::zelda3::atlas::DungeonAtlasJsonContext::project
std::string project
Definition
atlas_json.h:18
yaze::zelda3::atlas::DungeonAtlas
Definition
dungeon_atlas.h:170
src
zelda3
atlas
atlas_json.h
Generated by
1.10.0