ManaPlus
Functions
EAthena::AchievementRecv Namespace Reference

Functions

void processAchievementList (Net::MessageIn &msg)
 
void processAchievementUpdate (Net::MessageIn &msg)
 
void processAchievementGetReward (Net::MessageIn &msg)
 

Function Documentation

◆ processAchievementGetReward()

void EAthena::AchievementRecv::processAchievementGetReward ( Net::MessageIn msg)

Definition at line 69 of file achievementrecv.cpp.

70 {
72  msg.readUInt8("received");
73  msg.readInt32("ach id");
74 }
#define UNIMPLEMENTEDPACKET
Definition: logger.h:56
bool msg(InputEvent &event)
Definition: chat.cpp:39

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processAchievementList()

void EAthena::AchievementRecv::processAchievementList ( Net::MessageIn msg)

Definition at line 33 of file achievementrecv.cpp.

34 {
36  const int count = (msg.readInt16("len") - 22) / 50;
37  msg.readInt32("total achievements");
38  msg.readInt32("total points");
39  msg.readInt16("rank level");
40  msg.readInt32("rank points");
41  msg.readInt32("rank points need");
42  for (int f = 0; f < count; f ++)
43  {
44  msg.readInt32("ach id");
45  msg.readUInt8("completed");
46  for (int d = 0; d < 10; d ++)
47  msg.readInt32("objective");
48  msg.readInt32("completed at");
49  msg.readUInt8("reward");
50  }
51 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processAchievementUpdate()

void EAthena::AchievementRecv::processAchievementUpdate ( Net::MessageIn msg)

Definition at line 53 of file achievementrecv.cpp.

54 {
56  msg.readInt32("total points");
57  msg.readInt16("rank level");
58  msg.readInt32("rank points");
59  msg.readInt32("rank points need");
60 
61  msg.readInt32("ach id");
62  msg.readUInt8("completed");
63  for (int d = 0; d < 10; d ++)
64  msg.readInt32("objective");
65  msg.readInt32("completed at");
66  msg.readUInt8("reward");
67 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.