blob: 01cad26d9e8763097a879ceb3c04b0c933e28550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
using namespace std;
#include "Packet.h"
class AwardStatPacket : public Packet, public enable_shared_from_this<AwardStatPacket>
{
public:
int statId;
// 4J-JEV: Changed to allow for Durango events.
protected:
byteArray m_paramData;
public:
AwardStatPacket();
AwardStatPacket(int statId, int count);
AwardStatPacket(int statId, byteArray paramData);
~AwardStatPacket();
virtual void handle(PacketListener *listener);
virtual void read(DataInputStream *dis);
virtual void write(DataOutputStream *dos);
virtual int getEstimatedSize();
virtual bool isAync();
static shared_ptr<Packet> create() { return std::make_shared<AwardStatPacket>(); }
virtual int getId() { return 200; }
public:
// 4J-JEV: New getters to help prevent unsafe access
int getCount();
byteArray getParamData();
};
|