1
0

area_business.h 996 B

1234567891011121314151617181920212223242526272829303132
  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. int m_business_type=0;
  14. int area_business_type()
  15. {
  16. return m_business_type;
  17. }
  18. 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){}
  19. 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){}
  20. 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){}
  21. 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){}
  22. virtual ~area_business(){};
  23. static std::vector<area_business*> get_instance_list(int business_type,int area_id);
  24. };
  25. #endif