diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-04-28 16:17:44 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-04-28 16:37:08 -0400 |
commit | 75f2be2e29c49ae850c62399818840375fef492c (patch) | |
tree | 53c23f5215f86dd59c8867dd7d46a39b3419cda1 /tools/mapjson/mapjson.cpp | |
parent | 9ed87063f1682488a809f95dd578dec37d916aad (diff) |
Name map groups
Diffstat (limited to 'tools/mapjson/mapjson.cpp')
-rw-r--r-- | tools/mapjson/mapjson.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mapjson/mapjson.cpp b/tools/mapjson/mapjson.cpp index 44afcaf22..0b07f1208 100644 --- a/tools/mapjson/mapjson.cpp +++ b/tools/mapjson/mapjson.cpp @@ -78,6 +78,10 @@ string generate_map_header_text(Json map_data, Json layouts_data) { ostringstream text; + text << "@\n@ DO NOT MODIFY THIS FILE! It is auto-generated from data/maps/" + << map_data["name"].string_value() + << "/map.json\n@\n\n"; + text << map_data["name"].string_value() << "::\n" << "\t.4byte " << layout["name"].string_value() << "\n"; @@ -514,7 +518,7 @@ string generate_map_constants_text(string groups_filepath, Json groups_data) { int group_num = 0; for (auto &group : groups_data["group_order"].array_items()) { - text << "// Map Group " << group_num << "\n"; + text << "// " << group.string_value() << "\n"; vector<Json> map_ids; size_t max_length = 0; |