ManaPlus
Functions
EAthena::RouletteRecv Namespace Reference

Functions

void processRouletteInfoAckType (Net::MessageIn &msg)
 
void processRouletteItemAck (Net::MessageIn &msg)
 
void processRouletteGenerateAckType (Net::MessageIn &msg)
 
void processRouletteOpenAck (Net::MessageIn &msg)
 
void processRouletteClose (Net::MessageIn &msg)
 

Function Documentation

◆ processRouletteClose()

void EAthena::RouletteRecv::processRouletteClose ( Net::MessageIn msg)

Definition at line 89 of file rouletterecv.cpp.

90 {
92  msg.readUInt8("result");
93 }
#define UNIMPLEMENTEDPACKET
Definition: logger.h:56
bool msg(InputEvent &event)
Definition: chat.cpp:39

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRouletteGenerateAckType()

void EAthena::RouletteRecv::processRouletteGenerateAckType ( Net::MessageIn msg)

Definition at line 64 of file rouletterecv.cpp.

65 {
67  msg.readUInt8("result");
68  msg.readInt16("step");
69  msg.readInt16("idx");
70  msg.readItemId("item id");
71  msg.readInt32("remain gold");
72  msg.readInt32("remain silver");
73  msg.readInt32("remain bronze");
74 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRouletteInfoAckType()

void EAthena::RouletteRecv::processRouletteInfoAckType ( Net::MessageIn msg)

Definition at line 33 of file rouletterecv.cpp.

34 {
36  const int count = (msg.readInt16("len") - 8) / 8;
37  msg.readInt32("serial");
38 
39  for (int f = 0; f < count; f ++)
40  {
41  msg.readInt16("row");
42  msg.readInt16("position");
43  if (msg.getVersion() >= 20180511)
44  {
45  msg.readInt32("item id");
46  msg.readInt16("count");
47  msg.readInt16("unused");
48  }
49  else
50  {
51  msg.readInt16("item id");
52  msg.readInt16("count");
53  }
54  }
55 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRouletteItemAck()

void EAthena::RouletteRecv::processRouletteItemAck ( Net::MessageIn msg)

Definition at line 57 of file rouletterecv.cpp.

58 {
60  msg.readUInt8("result");
61  msg.readItemId("item id");
62 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processRouletteOpenAck()

void EAthena::RouletteRecv::processRouletteOpenAck ( Net::MessageIn msg)

Definition at line 76 of file rouletterecv.cpp.

77 {
79  msg.readUInt8("result");
80  msg.readInt32("serial");
81  msg.readUInt8("step");
82  msg.readUInt8("idx");
83  msg.readItemId("additional item id");
84  msg.readInt32("gold point");
85  msg.readInt32("silver point");
86  msg.readInt32("bronze point");
87 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.