|
@@ -84,12 +84,24 @@ area::area(int id,int limit_count_person, int limit_time_person,double scale,int
|
|
|
,m_vehicle_show_count(0)
|
|
|
,m_frozen_count(0)
|
|
|
,m_is_work_area(0)
|
|
|
- {
|
|
|
- m_default_limit_person_count = limit_count_person;
|
|
|
- m_area_business_list=area_business::get_instance_list(m_biz_type,id);
|
|
|
- m_persons_thre_time = std::make_shared<area_persons_thre_time>();
|
|
|
- m_persons_thre_time->set_default_person_count_limit(limit_count_person);
|
|
|
- }
|
|
|
+{
|
|
|
+ m_default_limit_person_count = limit_count_person;
|
|
|
+ m_area_business_list=area_business::get_instance_list(m_biz_type,id);
|
|
|
+ m_persons_thre_time = std::make_shared<area_persons_thre_time>();
|
|
|
+ m_persons_thre_time->set_default_person_count_limit(limit_count_person);
|
|
|
+}
|
|
|
+
|
|
|
+void area::update(int limit_count_person, int limit_time_person,double scale,int32_t mapid, int limit_count_vehicle, int limit_time_vehicle)
|
|
|
+{
|
|
|
+ m_limit_person_min=limit_time_person;
|
|
|
+ m_default_limit_person_count=limit_count_person;
|
|
|
+ m_persons_thre_time->set_default_person_count_limit(limit_count_person);
|
|
|
+ m_scale=scale;
|
|
|
+ m_mapid=mapid;
|
|
|
+ m_limit_vehicle_count=limit_count_vehicle;
|
|
|
+ m_limit_vehicle_min=limit_time_vehicle;
|
|
|
+}
|
|
|
+
|
|
|
void area::clear()
|
|
|
{
|
|
|
EVENT_TYPE ev = is_mine()?EVENT_TYPE::ET_OVER_COUNT_PERSON : EVENT_TYPE::ET_AREA_OVER_COUNT_PERSON ;
|