mrDarker
2025-06-26 adf46e4da2f53d171cc5a0e95340d751ebacf763
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
#pragma once
 
#define REPLY_PACKET_NOT_END    1
#define REPLY_NOERROR            0
#define REPLY_MEMROY_ERROR        -1
#define REPLY_PACKET_ERROR        -2
 
namespace BEQ {
    class CAction
    {
    public:
        CAction();
        CAction(int type);
        ~CAction();
 
    public:
        int getId();
        int getType();
        int timeIncrease(int ms);
        int setRawString(const char* pszTxt);
        void getRawData(char*& pRawData, int& size, int& validLen);
        void setReplyCode(int code);
 
    private:
        int m_id;
        int m_nType;
        int m_nTime;
        char m_szRawData[1024];
        int m_nValidLen;
        int m_nReplyCode;
    };
}