Beispiel #1
0
void BankRecv::processBankStatus(Net::MessageIn &msg)
{
    const int money = CAST_S32(msg.readInt64("money"));
    const int reason = msg.readInt16("reason");
    BankListener::distributeEvent(money);
    if (reason != 0)
        NotifyManager::notify(NotifyTypes::BANK_CHECK_FAILED);
}
Beispiel #2
0
void BankRecv::processBankWithdraw(Net::MessageIn &msg)
{
    const int reason = msg.readInt16("reason");
    const int money = CAST_S32(msg.readInt64("money"));
    msg.readInt32("balance");
    BankListener::distributeEvent(money);
    if (reason != 0)
        NotifyManager::notify(NotifyTypes::BANK_WITHDRAW_FAILED);
}