1
This commit is contained in:
parent
d527c83638
commit
a857265209
@ -1642,7 +1642,15 @@ namespace MetaData
|
||||
|
||||
void PveGeminiContent::Init()
|
||||
{
|
||||
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(pb->spawn_point(), strings, ':');
|
||||
if (strings.size() != 2) {
|
||||
abort();
|
||||
}
|
||||
spawn_point = a8::Vec2(a8::XValue(strings[0]).GetDouble(),
|
||||
a8::XValue(strings[1]).GetDouble());
|
||||
}
|
||||
}
|
||||
|
||||
void PveGeminiMode::Init()
|
||||
@ -1661,6 +1669,24 @@ namespace MetaData
|
||||
mode_time.push_back(time);
|
||||
}
|
||||
}
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(pb->area(), strings, '|');
|
||||
for (auto& str : strings) {
|
||||
std::vector<std::string> strings2;
|
||||
a8::Split(str, strings2, ':');
|
||||
if (strings2.size() != 3) {
|
||||
abort();
|
||||
}
|
||||
area.push_back(std::make_tuple
|
||||
(
|
||||
(float)a8::XValue(strings2[0]).GetDouble(),
|
||||
(float)a8::XValue(strings2[1]).GetDouble(),
|
||||
(int)a8::XValue(strings2[2]).GetInt()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user