| | |
| | | CEquipment::onTimer(nTimerid); |
| | | |
| | | // test |
| | | /* |
| | | static int i[2] = { 0, 0 }; |
| | | i[m_nIndex]++; |
| | | if (m_nIndex == 0 && i[m_nIndex] == 100) { |
| | | if (m_nIndex == 0 && i[m_nIndex] % 20 == 0) { |
| | | if (m_listener.onAlarm != nullptr) { |
| | | m_listener.onAlarm(this, 1, |
| | | 100, |
| | | i[m_nIndex], |
| | | getID(), |
| | | 1); |
| | | } |
| | | } |
| | | */ |
| | | } |
| | | |
| | | void CBonder::serialize(CArchive& ar) |
| | |
| | | return pBuddy != nullptr; |
| | | } |
| | | |
| | | BOOL CBonder::hasG2Class() |
| | | { |
| | | CGlass* pGlass = (CGlass*)m_slot[0].getContext(); |
| | | return (pGlass != nullptr); |
| | | } |
| | | |
| | | int CBonder::onProcessData(CProcessData* pProcessData) |
| | | { |
| | | CEquipment::onProcessData(pProcessData); |