1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef AREA_BUSINESS_MOTIONLESS_PERSION
- #define AREA_BUSINESS_MOTIONLESS_PERSION
- #include"area_business.h"
- #include"config_file.h"
- class area_business_motionless_persion : public area_business
- {
- private:
- static int _acc_0count_limit;
- public:
- int area_business_type()
- {
- return 5;
- }
- static void init(config_file& config)
- {
-
- _acc_0count_limit = std::stoi(config.get("service.motionless_acc_0count_limit","40"));
- }
- void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr);
- void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
- void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
- };
- #endif
|