1
This commit is contained in:
parent
7101ef89e8
commit
f192457a77
@ -28,6 +28,18 @@ namespace mt
|
||||
);
|
||||
}
|
||||
}
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(bombling_time(), strings, ':');
|
||||
if (strings.size() == 0) {
|
||||
_bombling_time = std::make_tuple(0, 0);
|
||||
} else if (strings.size() == 2) {
|
||||
_bombling_time = std::make_tuple(a8::XValue(strings[0]).GetInt(),
|
||||
a8::XValue(strings[1]).GetInt());
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ namespace mt
|
||||
|
||||
std::vector<std::tuple<int, int>> _raid_waves;
|
||||
std::vector<int> _bomb_ids;
|
||||
std::tuple<int, int> _bombling_time;
|
||||
|
||||
};
|
||||
|
||||
|
@ -834,6 +834,7 @@ message MFAirRaid
|
||||
optional int32 appear_time = 1; //空袭出现时间(毫秒)
|
||||
optional MFVec3 pos = 3; //空袭位置
|
||||
optional float rad = 4; //空袭半径
|
||||
optional int32 continue_time = 5; //轰炸持续时间,(在空袭出现后!!!)
|
||||
}
|
||||
|
||||
//buff
|
||||
|
Loading…
x
Reference in New Issue
Block a user