From 724f8092c4808cdad47316e00949c04ee797acb5 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 19 Aug 2025 20:19:48 -0400 Subject: Store IDs in a yaml file This is much more efficient than the txtpb format, and we only need an interface for it in C++ since the IDs will be packed into the binary proto representation. --- tools/util/ids_yaml_format.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/util/ids_yaml_format.h (limited to 'tools/util/ids_yaml_format.h') diff --git a/tools/util/ids_yaml_format.h b/tools/util/ids_yaml_format.h new file mode 100644 index 0000000..d926369 --- /dev/null +++ b/tools/util/ids_yaml_format.h @@ -0,0 +1,16 @@ +#ifndef TOOLS_UTIL_IDS_YAML_FORMAT_H_ +#define TOOLS_UTIL_IDS_YAML_FORMAT_H_ + +#include + +#include "proto/human.pb.h" + +namespace com::fourisland::lingo2_archipelago { + +IdMappings ReadIdsFromYaml(const std::string& filename); + +void WriteIdsAsYaml(const IdMappings& ids, const std::string& filename); + +} // namespace com::fourisland::lingo2_archipelago + +#endif /* TOOLS_UTIL_IDS_YAML_FORMAT_H_ */ -- cgit 1.4.1