40 lines
988 B
C++
40 lines
988 B
C++
#pragma once
|
|
|
|
#include "mt/macro.h"
|
|
#include "mtb/Map.h"
|
|
|
|
namespace mt
|
|
{
|
|
class MapCollider;
|
|
|
|
DECLARE_ID_TABLE(Map, mtb::Map,
|
|
"map@map.json",
|
|
"map_id")
|
|
public:
|
|
std::vector<std::tuple<std::string, int>> template_list_;
|
|
int rand_space = 0;
|
|
std::vector<int> airdrops_;
|
|
std::vector<int> airraids_;
|
|
int refresh_robot_min_num = 0;
|
|
int refresh_robot_max_num = 0;
|
|
int refresh_robot_min_time = 0;
|
|
int refresh_robot_max_time = 0;
|
|
std::vector<int> buff_list;
|
|
glm::vec3 first_safearea_center_;
|
|
std::map<int, int> car_num_limit_;
|
|
std::vector<int> safearea_list;
|
|
MapCollider* collider_info = nullptr;
|
|
|
|
std::string RandTemplate() const;
|
|
int GetCarLimit(int car_id) const;
|
|
glm::vec3 GetCenter() const;
|
|
int RandSafeArea() const;
|
|
bool IsPveMap() const;
|
|
|
|
void Init1();
|
|
void Init2();
|
|
|
|
};
|
|
|
|
}
|