Skip to content

Commit ca96b25

Browse files
committed
add secretlayer6 mod fully
1 parent f0b8687 commit ca96b25

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v2.4.0
2+
3+
- Add (fully) `timestepyt.secretlayer6` mod
4+
15
# v2.3.1
26

37
- Bugfix: Clicking the settings button with Happy Textures installed crashes the game.

mod.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,12 @@
487487
"type": "bool",
488488
"default": false
489489
},
490+
"timestepyt.secretlayer6/SecretLayer6R": {
491+
"name": "SecretLayer6R",
492+
"description": "SecretLayer6R",
493+
"type": "bool",
494+
"default": false
495+
},
490496
"other-title": {
491497
"type": "title",
492498
"name": "Other"
50 KB
Loading

src/Tags.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ using namespace geode::prelude;
77

88
class Tags {
99
public:
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

181180
private:
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
};

src/layers/GYSettingSelectLayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ bool GYSettingSelectLayer::init() {
167167
{ "GDCP List Integration", "GDCP Team + 2 more", "gdcpteam.challenge-list" },
168168
{ "Random Tab", "Alphalaneous", "alphalaneous.random_tab" },
169169
{ "Geometry Dash: Surge", "OmgRod", "omgrod.geometry-dash-surge" },
170+
{ "SecretLayer6", "TimeStepYT", "timestepyt.secretlayer6" },
170171
};
171172

172173
for (const auto& [name, author, id] : modData) {

0 commit comments

Comments
 (0)