area_business.h 951 B

12345678910111213141516171819202122232425262728
  1. #ifndef _area_business_hpp_
  2. #define _area_business_hpp_
  3. #include <vector>
  4. #include <memory>
  5. struct business_data
  6. {
  7. virtual ~business_data(){}
  8. };
  9. struct area_hover;
  10. struct card_location_base;
  11. struct area_business
  12. {
  13. virtual int area_business_type()=0;
  14. virtual void on_load_his(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr){}
  15. virtual void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr){}
  16. virtual void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr){}
  17. virtual void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr){}
  18. virtual ~area_business(){};
  19. static std::vector<area_business*> get_instance_list(int business_type,int area_id);
  20. };
  21. #endif