SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ServerSelectRequest.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
10 
12 {
13 public:
15  {}
16  void init(EventProcessor *ev_src,uint8_t server_id)
17  {
18  m_server_id = server_id;
19  m_event_source = ev_src;
20  }
22  {
23  uint8_t op;
24  buf.uGet(op);
26  buf.uGet(m_server_id);
27  }
28  void serializeto(GrowingBuffer &buf) const
29  {
30  buf.uPut((uint8_t)2);
32  buf.uPut(m_server_id);
33  }
34  uint8_t unkLoginArray[8];
35  uint8_t m_server_id;
36 };
Definition: AuthEvents.h:31
void serializeto(GrowingBuffer &buf) const
Definition: ServerSelectRequest.h:28
void serializefrom(GrowingBuffer &buf)
Definition: ServerSelectRequest.h:21
void uGet(T &val)
Definition: Buffer.h:76
ServerSelectRequest()
Definition: ServerSelectRequest.h:14
Definition: Buffer.h:17
void uPutBytes(const uint8_t *t, size_t len)
Definition: Buffer.cpp:96
void uPut(const T &val)
Definition: Buffer.h:69
void init(EventProcessor *ev_src, uint8_t server_id)
Definition: ServerSelectRequest.h:16
Definition: EventProcessor.h:13
Definition: ServerSelectRequest.h:11
EventProcessor * m_event_source
Definition: SEGSEvent.h:36
uint8_t unkLoginArray[8]
Definition: ServerSelectRequest.h:34
void uGetBytes(uint8_t *t, size_t len)
Definition: Buffer.cpp:133
Definition: AuthEvents.h:15
uint8_t m_server_id
Definition: ServerSelectRequest.h:35