area_business.h 719 B

1234567891011121314151617181920212223
  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_business
  10. {
  11. virtual int area_business_type()=0;
  12. 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){}
  13. 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){}
  14. 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){}
  15. static std::vector<area_business*> get_instance_list(int business_type);
  16. };
  17. #endif