ManaPlus
Functions
EAthena::BankRecv Namespace Reference

Functions

void processBankStatus (Net::MessageIn &msg)
 
void processBankDeposit (Net::MessageIn &msg)
 
void processBankWithdraw (Net::MessageIn &msg)
 

Function Documentation

◆ processBankDeposit()

void EAthena::BankRecv::processBankDeposit ( Net::MessageIn msg)

Definition at line 48 of file bankrecv.cpp.

49 {
50  const int reason = msg.readInt16("reason");
51  const int money = CAST_S32(msg.readInt64("money"));
52  msg.readInt32("balance");
54  if (reason != 0)
56 }
#define CAST_S32
Definition: cast.h:30
static void distributeEvent(const int money)
bool msg(InputEvent &event)
Definition: chat.cpp:39
void notify(const unsigned int message)
@ BANK_DEPOSIT_FAILED
Definition: notifytypes.h:129

References NotifyTypes::BANK_DEPOSIT_FAILED, CAST_S32, BankListener::distributeEvent(), Actions::msg(), and NotifyManager::notify().

◆ processBankStatus()

void EAthena::BankRecv::processBankStatus ( Net::MessageIn msg)

Definition at line 39 of file bankrecv.cpp.

40 {
41  const int money = CAST_S32(msg.readInt64("money"));
42  const int reason = msg.readInt16("reason");
44  if (reason != 0)
46 }

References NotifyTypes::BANK_CHECK_FAILED, CAST_S32, BankListener::distributeEvent(), Actions::msg(), and NotifyManager::notify().

◆ processBankWithdraw()

void EAthena::BankRecv::processBankWithdraw ( Net::MessageIn msg)

Definition at line 58 of file bankrecv.cpp.

59 {
60  const int reason = msg.readInt16("reason");
61  const int money = CAST_S32(msg.readInt64("money"));
62  msg.readInt32("balance");
64  if (reason != 0)
66 }
@ BANK_WITHDRAW_FAILED
Definition: notifytypes.h:130

References NotifyTypes::BANK_WITHDRAW_FAILED, CAST_S32, BankListener::distributeEvent(), Actions::msg(), and NotifyManager::notify().