diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-16 14:52:24 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-16 14:52:24 -0400 |
commit | c88f4184eaa48efbdc69e76eb3c8a4a206434ad3 (patch) | |
tree | c1da4c419d90debafdd7f71347fe5f3194ff13ee /tools/util/naming.cpp | |
parent | ac600120eb923e99c534f5c405f7f529c1b25bcf (diff) | |
download | lingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.tar.gz lingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.tar.bz2 lingo2-archipelago-c88f4184eaa48efbdc69e76eb3c8a4a206434ad3.zip |
Started writing a data validator
Currently, it can check whether identifiers point to non-existent objects, or whether multiple objects share the same identifier. It can also determine whether an identifier is underspecified (e.g. a door doesn't specify a room, or a global connection doesn't specify a map).
Diffstat (limited to 'tools/util/naming.cpp')
-rw-r--r-- | tools/util/naming.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/util/naming.cpp b/tools/util/naming.cpp index 0ae99f6..8229c6d 100644 --- a/tools/util/naming.cpp +++ b/tools/util/naming.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | #include <sstream> | 3 | #include <sstream> |
4 | 4 | ||
5 | namespace com::fourisland::lingo2_archipelago { | ||
6 | |||
5 | std::string GetLetterName(std::string key, bool level2) { | 7 | std::string GetLetterName(std::string key, bool level2) { |
6 | std::ostringstream lettername_s; | 8 | std::ostringstream lettername_s; |
7 | lettername_s << key; | 9 | lettername_s << key; |
@@ -9,3 +11,5 @@ std::string GetLetterName(std::string key, bool level2) { | |||
9 | 11 | ||
10 | return lettername_s.str(); | 12 | return lettername_s.str(); |
11 | } | 13 | } |
14 | |||
15 | } // namespace com::fourisland::lingo2_archipelago | ||