mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix.格子识别增加levelId和stageId的支持
This commit is contained in:
@@ -151,7 +151,10 @@ namespace Map
|
||||
inline bool TileCalc::run(const std::string& code_or_name, bool side, std::vector<std::vector<cv::Point2d>>& out_pos, std::vector<std::vector<Tile>>& out_tiles) const
|
||||
{
|
||||
for (const Map::Level& level : TileCalc::levels) {
|
||||
if (level.code != code_or_name && level.name != code_or_name) {
|
||||
if (level.code != code_or_name &&
|
||||
level.name != code_or_name &&
|
||||
level.levelId != code_or_name &&
|
||||
level.stageId != code_or_name) {
|
||||
continue;
|
||||
}
|
||||
auto [x, y, z] = level.view[side ? 1 : 0];
|
||||
|
||||
Reference in New Issue
Block a user