1234567891011121314151617181920212223 |
- #ifndef _area_business_hpp_
- #define _area_business_hpp_
- #include <vector>
- #include <memory>
- struct business_data
- {
- virtual ~business_data(){}
- };
- struct area_business
- {
- virtual int area_business_type()=0;
- 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){}
- 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){}
- 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){}
- static std::vector<area_business*> get_instance_list(int business_type);
- };
- #endif
|