1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include "area.h"
- #include "card_base.h"
- #include "tool_time.h"
- #include "area_business_post_area.h"
- struct pos_area:business_data
- {
- pos_area(uint64_t t)
- {
- m_enter_time=t;
- }
- uint64_t m_enter_time=0;
- };
- void area_business_post_area::on_enter(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr)
- {
-
-
- c->set_area_info(a->mapid(),a->scale(),a->id(),a->m_enter_time,0);
- }
- void area_business_post_area::on_hover(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
- {
-
-
- c->set_area_info(0,0,a->id(),a->m_enter_time,1);
- }
- void area_business_post_area::on_leave(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
- {
- c->set_area_info(0,0,a->id(),0,2);
- }
|