1
0

module_other_alarm.cpp 627 B

1234567891011121314151617181920
  1. #include"module_other_alarm.h"
  2. #include"event.h"
  3. #include"common_tool.h"
  4. #include"log.h"
  5. void module_other_alarm::power_lower_serious(std::shared_ptr<card_location_base> card_ptr)
  6. {
  7. uint64_t id = tool_other::type_id_to_u64(card_ptr->m_type, card_ptr->m_id);
  8. event_tool::instance()->handle_event(OT_CARD, ET_CARD_LOW_POWER_SERIOUS, id, 0, 0, true);
  9. }
  10. void module_other_alarm::power_nomarl(std::shared_ptr<card_location_base> card_ptr)
  11. {
  12. uint64_t id = tool_other::type_id_to_u64(card_ptr->m_type, card_ptr->m_id);
  13. event_tool::instance()->handle_event(OT_CARD, ET_CARD_LOW_POWER_SERIOUS, id, 0, 0, false);
  14. }