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
12
13namespace yaze::zelda3::atlas {
14
15inline constexpr char kDungeonAtlasJsonSchema[] = "yaze.atlas.dungeon/1";
16
18 std::string project; // Project file as given, empty = none.
19 std::string generator; // For example "z3ed 0.8.0".
20};
21
22std::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_
std::string DungeonAtlasToJson(const DungeonAtlas &atlas, const DungeonAtlasJsonContext &context, int indent)
Definition atlas_json.cc:72
constexpr char kDungeonAtlasJsonSchema[]
Definition atlas_json.h:15