1
This commit is contained in:
parent
9783bd2c44
commit
6c32d25c2c
@ -302,6 +302,20 @@ namespace MetaData
|
|||||||
param2_list.push_back(a8::XValue(str));
|
param2_list.push_back(a8::XValue(str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
std::vector<std::string> strings;
|
||||||
|
a8::Split(i->shapes(), strings, '|');
|
||||||
|
for (auto& str : strings) {
|
||||||
|
std::vector<std::string> strings2;
|
||||||
|
a8::Split(str, strings2, ':');
|
||||||
|
shapes.push_back(std::make_tuple
|
||||||
|
(
|
||||||
|
a8::XValue(strings2[0]).GetInt(),
|
||||||
|
a8::XValue(strings2[1]).GetInt(),
|
||||||
|
a8::XValue(strings2[2]).GetInt()
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int MapThing::RandDrop()
|
int MapThing::RandDrop()
|
||||||
|
@ -61,6 +61,7 @@ namespace MetaData
|
|||||||
std::vector<int> param2_list;
|
std::vector<int> param2_list;
|
||||||
std::vector<std::tuple<int, int>> preexplosion_summon;
|
std::vector<std::tuple<int, int>> preexplosion_summon;
|
||||||
std::vector<std::tuple<int, int>> drop;
|
std::vector<std::tuple<int, int>> drop;
|
||||||
|
std::vector<std::tuple<int, int, int>> shapes;
|
||||||
bool HasDrop() { return !drop.empty();};
|
bool HasDrop() { return !drop.empty();};
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -76,6 +76,7 @@ message MapThing
|
|||||||
optional int32 prebattle_hide = 32;
|
optional int32 prebattle_hide = 32;
|
||||||
optional int32 life_time = 33;
|
optional int32 life_time = 33;
|
||||||
optional int32 summon_born_rad = 34;
|
optional int32 summon_born_rad = 34;
|
||||||
|
optional string shapes = 36;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SafeArea
|
message SafeArea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user