This commit is contained in:
aozhiwei 2022-08-16 14:49:51 +08:00
parent d85ee00b4f
commit 4a96efd8ad
2 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,11 @@ namespace MetaData
return safearea_list[rand() % safearea_list.size()]; return safearea_list[rand() % safearea_list.size()];
} }
bool Map::IsPveMap()
{
return i->map_id() >= 1002 && i->map_id() <= 1003;
}
void MapThing::Init() void MapThing::Init()
{ {
{ {

View File

@ -39,6 +39,7 @@ namespace MetaData
int GetCarLimit(int car_id); int GetCarLimit(int car_id);
a8::Vec2 GetCenter() const; a8::Vec2 GetCenter() const;
int RandSafeArea() const; int RandSafeArea() const;
bool IsPveMap();
}; };
struct Attr struct Attr