SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
LoginResponse.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 #include <cstring>
10 #include "Auth/AuthEvents.h"
11 
12 namespace SEGSEvents
13 {
14 // [[ev_def:type]]
16 {
17 public:
18  // [[ev_def:field]]
19  uint8_t unkArray1[8];
20  // [[ev_def:field]]
21  uint8_t unkArray2[8];
22  // [[ev_def:field]]
23  uint32_t unk1=0;
24  // [[ev_def:field]]
25  uint32_t unk2=0;
26  // [[ev_def:field]]
27  uint32_t unk3=0;
29  {
30  memset(unkArray1,0,8);
31  memset(unkArray2,0,8);
32  }
33  void serializeto(GrowingBuffer &buf) const override
34  {
35  buf.uPut((uint8_t)3); // packet code
36  buf.uPutBytes(unkArray1, sizeof(unkArray1));
37  buf.uPutBytes(unkArray2, sizeof(unkArray2));
38  buf.uPut(unk1);
39  buf.uPut(unk2);
40  buf.uPut(unk3);
41  }
42  void serializefrom(GrowingBuffer &buf) override
43  {
44  uint8_t op;
45  buf.uGet(op);
46  buf.uGetBytes(unkArray1, sizeof(unkArray1));
47  buf.uGetBytes(unkArray2, sizeof(unkArray2));
48  buf.uGet(unk1);
49  buf.uGet(unk2);
50  buf.uGet(unk3);
51  }
53 };
54 } //end of namespace SEGSEvents
55 
uint32_t unk3
Definition: LoginResponse.h:27
void uGetBytes(uint8_t *t, uint32_t len)
Definition: Buffer.cpp:144
void uGet(T &val)
Definition: Buffer.h:77
Definition: LinkLevelEvent.h:13
LoginResponse()
Definition: LoginResponse.h:28
Definition: Buffer.h:17
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
void serializeto(GrowingBuffer &buf) const override
Definition: LoginResponse.h:33
void uPut(const T &val)
Definition: Buffer.h:70
uint32_t unk2
Definition: LoginResponse.h:25
Definition: AuthEvents.h:38
void uPutBytes(const uint8_t *t, uint32_t len)
Definition: Buffer.cpp:108
uint8_t unkArray2[8]
Definition: LoginResponse.h:21
Definition: LoginResponse.h:15
void serializefrom(GrowingBuffer &buf) override
Definition: LoginResponse.h:42
uint32_t unk1
Definition: LoginResponse.h:23
Definition: AuthEvents.h:18
uint8_t unkArray1[8]
Definition: LoginResponse.h:19