yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
atlas_annotations.cc File Reference
#include "zelda3/atlas/atlas_annotations.h"
#include <algorithm>
#include <cctype>
#include <filesystem>
#include <fstream>
#include <initializer_list>
#include <sstream>
#include <utility>
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "nlohmann/json.hpp"
#include "zelda3/atlas/atlas_defaults.h"

Go to the source code of this file.

Classes

class  yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::DocReader
 

Namespaces

namespace  yaze
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::zelda3::atlas
 
namespace  yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}
 

Macros

#define ATLAS_ASSIGN(lhs, expr)
 
#define ATLAS_CHECK(expr)
 

Typedefs

using yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::Json = nlohmann::ordered_json
 

Functions

std::string yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::EscapePointerToken (const std::string &token)
 
std::string yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::Child (const std::string &ptr, const std::string &key)
 
std::string yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::Child (const std::string &ptr, size_t index)
 
std::string yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::Describe (const Json &value)
 
bool yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::IsHexDigit (char c)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeDungeon (AtlasAnnotations *out, DungeonAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeArea (AtlasAnnotations *out, AreaAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergePlan (AtlasAnnotations *out, PlanAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeLink (AtlasAnnotations *out, LinkAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeRoom (AtlasAnnotations *out, int room, RoomAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeOverworldMap (AtlasAnnotations *out, int map, OverworldMapAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeGate (AtlasAnnotations *out, OverworldGateAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::MergeRegion (AtlasAnnotations *out, OverworldRegionAnnotation entry)
 
void yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::AppendUnique (std::vector< int > *list, const std::vector< int > &more)
 
absl::StatusOr< SymbolLinkAnnotation > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadSymbolLink (const DocReader &r, const Json &value, const std::string &ptr)
 
absl::StatusOr< PlanAnnotation > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadPlan (const DocReader &r, const Json &value, const std::string &ptr)
 
absl::StatusOr< AreaAnnotation > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadArea (const DocReader &r, const Json &value, const std::string &ptr)
 
absl::Status yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadLegendNotes (const DocReader &r, const Json &value, const std::string &ptr, AtlasAnnotations *out)
 
absl::StatusOr< OverworldSectionAnnotation > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadSection (const DocReader &r, const Json &value, const std::string &ptr)
 
absl::StatusOr< std::pair< int, std::string > > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadGateKey (const DocReader &r, const std::string &key, const std::string &ptr)
 
absl::Status yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadOverworldV1 (const DocReader &r, const Json &value, const std::string &ptr, AtlasAnnotations *out)
 
absl::Status yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadAtlasV1 (const DocReader &r, const Json &root, AtlasAnnotations *out)
 
absl::Status yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadOracleRoomV0 (const DocReader &r, const Json &root, AtlasAnnotations *out)
 
absl::Status yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::ReadOracleOverworldV0 (const DocReader &r, const Json &root, AtlasAnnotations *out)
 
absl::StatusOr< AnnotationFormat > yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::DetectFormat (const DocReader &r, const Json &root)
 
const char * yaze::zelda3::atlas::AnnotationFormatName (AnnotationFormat format)
 
std::optional< int > yaze::zelda3::atlas::ParseAtlasId (const std::string &text)
 
absl::Status yaze::zelda3::atlas::MergeAtlasAnnotationText (const std::string &text, const std::string &file_label, AtlasAnnotations *out, AnnotationFormat *format)
 
absl::Status yaze::zelda3::atlas::MergeAtlasAnnotationFile (const std::string &path, AtlasAnnotations *out, AnnotationFormat *format)
 
void yaze::zelda3::atlas::ApplyVanillaAtlasDefaults (AtlasAnnotations *out)
 
absl::StatusOr< AtlasAnnotations > yaze::zelda3::atlas::LoadAtlasAnnotations (const std::vector< std::string > &files, const std::string &defaults)
 

Variables

constexpr int yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::kItemIdLimit = 0x100
 
constexpr int yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::kTileTypeLimit = 0x100
 
constexpr int yaze::zelda3::atlas::anonymous_namespace{atlas_annotations.cc}::kTile16Limit = 0x1000
 

Macro Definition Documentation

◆ ATLAS_ASSIGN

◆ ATLAS_CHECK