@@ -7,11 +7,9 @@ using namespace geode::prelude;
77
88class Tags {
99public:
10- // Constructor to initialize the tag-to-string and string-to-tag maps
1110 Tags () {
1211 log::debug (" Initializing Tags..." );
1312
14- // Populate the maps directly (no hashing needed)
1513 m_tagMap = {
1614 {" gd-CreatorLayer" , 0 },
1715 {" gd-EditLevelLayer" , 1 },
@@ -79,11 +77,12 @@ class Tags {
7977 {" omgrod.geometry-dash-surge-GDSIslandSelectLayer" , 63 },
8078 {" omgrod.geometry-dash-surge-GDSBasementLayer" , 64 },
8179 {" omgrod.geometry-dash-surge-GDSCreditsLayer" , 65 },
80+ {" gd-SecretLayer5" , 66 },
81+ {" timestepyt.secretlayer6-SecretLayer6R" , 67 },
8282 };
8383
8484 log::debug (" Tag map populated with {} entries." , m_tagMap.size ());
8585
86- // Populate the string-to-tag map
8786 m_stringMap = {
8887 {0 , " gd-CreatorLayer" },
8988 {1 , " gd-EditLevelLayer" },
@@ -151,12 +150,13 @@ class Tags {
151150 {63 , " omgrod.geometry-dash-surge-GDSIslandSelectLayer" },
152151 {64 , " omgrod.geometry-dash-surge-GDSBasementLayer" },
153152 {65 , " omgrod.geometry-dash-surge-GDSCreditsLayer" },
153+ {66 , " gd-SecretLayer5" },
154+ {67 , " timestepyt.secretlayer6-SecretLayer6R" },
154155 };
155156
156157 log::debug (" String map populated with {} entries." , m_stringMap.size ());
157158 }
158159
159- // Convert a string to a corresponding tag (integer)
160160 int getTagFromString (std::string name) {
161161 auto it = m_tagMap.find (name);
162162 if (it != m_tagMap.end ()) {
@@ -167,7 +167,6 @@ class Tags {
167167 return -1 ;
168168 }
169169
170- // Convert an integer tag back to the corresponding string
171170 std::string getStringFromTag (int tag) {
172171 auto it = m_stringMap.find (tag);
173172 if (it != m_stringMap.end ()) {
@@ -179,6 +178,6 @@ class Tags {
179178 }
180179
181180private:
182- std::unordered_map<std::string, int > m_tagMap; // Direct map for string -> tag
183- std::unordered_map<int , std::string> m_stringMap; // Direct map for tag -> string
181+ std::unordered_map<std::string, int > m_tagMap;
182+ std::unordered_map<int , std::string> m_stringMap;
184183};
0 commit comments