summary refs log tree commit diff stats
path: root/tools/util/ids_yaml_format.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-19 20:19:48 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-19 20:19:48 -0400
commit724f8092c4808cdad47316e00949c04ee797acb5 (patch)
tree758d598fbc2d62c4620956b71b2a851791fd2dbf /tools/util/ids_yaml_format.h
parent511d813113b6e7986aff665603ca0196799e232d (diff)
downloadlingo2-archipelago-724f8092c4808cdad47316e00949c04ee797acb5.tar.gz
lingo2-archipelago-724f8092c4808cdad47316e00949c04ee797acb5.tar.bz2
lingo2-archipelago-724f8092c4808cdad47316e00949c04ee797acb5.zip
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.
Diffstat (limited to 'tools/util/ids_yaml_format.h')
-rw-r--r--tools/util/ids_yaml_format.h16
1 files changed, 16 insertions, 0 deletions
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 @@
1#ifndef TOOLS_UTIL_IDS_YAML_FORMAT_H_
2#define TOOLS_UTIL_IDS_YAML_FORMAT_H_
3
4#include <string>
5
6#include "proto/human.pb.h"
7
8namespace com::fourisland::lingo2_archipelago {
9
10IdMappings ReadIdsFromYaml(const std::string& filename);
11
12void WriteIdsAsYaml(const IdMappings& ids, const std::string& filename);
13
14} // namespace com::fourisland::lingo2_archipelago
15
16#endif /* TOOLS_UTIL_IDS_YAML_FORMAT_H_ */