-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.cpp
More file actions
30 lines (29 loc) · 788 Bytes
/
struct.cpp
File metadata and controls
30 lines (29 loc) · 788 Bytes
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
//struct aStruct : public IMsgBody
//{
// int a[playerNum]; //这是一个注释
// int b;/*另外一个注释*/
// struct anInner
// {
// double aDouble;
// };
// anInner anInnerInstance;
// std:: vector<int> v;
// std::vector<map<int, double> > v2;
//};
class SomeResp : public IMsgBody
{
public:
int32_t Encode(uint8_t* buf, const uint32_t size, uint32_t& offset){ return 1; }
int32_t Decode(uint8_t* buf, const uint32_t size, uint32_t& offset){
return 2;
}
int32_t Dump(uint8_t* buf, const uint32_t size, uint32_t& offset);
public:
int32_t nErrorCode;
int32_t nRoleID;
int32_t serverID;
HSSRoleGameInfo stRoleGameInfo;
int32_t bathOpenStage;
int32_t nHotSpringCount;
HotSpringGeneralInfo stHotSpringGeneralInfo[enmMaxHotSpringCount];
};