コード例 #1
0
ファイル: bankrecv.cpp プロジェクト: mekolat/ManaPlus
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);
}
コード例 #2
0
ファイル: bankrecv.cpp プロジェクト: mekolat/ManaPlus
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);
}