SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
SceneEvent.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
11 #include "Messages/Map/MapRef.h"
12 
13 #include <QtCore/QString>
14 #include <vector>
15 #include <string>
16 #include <stdint.h>
17 
18 class BitStream;
19 namespace SEGSEvents
20 {
21 
22 using MapLinkEvent = CRUDLink_Event; //<MapLink>
23 
24 // [[ev_def:type]]
25 class Scene : public MapLinkEvent
26 {
27 public:
28  Scene();
29 
30  void serializefrom(BitStream &src) override;
31  void serializeto(BitStream &tgt) const override;
32 
33  // [[ev_def:field]]
34  QString m_map_desc;
35  // [[ev_def:field]]
36  uint32_t ref_count;
37  // [[ev_def:field]]
38  int ref_crc;
39  // [[ev_def:field]]
40  int var_4;
41  // [[ev_def:field]]
43  // [[ev_def:field]]
45  // [[ev_def:field]]
47  // [[ev_def:field]]
48  int undos_PP;
49  // [[ev_def:field]]
51  // [[ev_def:field]]
52  std::vector<QString> m_trays;
53  // [[ev_def:field]]
54  std::vector<uint32_t> m_crc;
55  // [[ev_def:field]]
56  std::vector<MapRef> m_refs;
57  // [[ev_def:field]]
58  int unkn1;
59  // [[ev_def:field]]
61  // [[ev_def:field]]
62  bool unkn2;
64 protected:
65  void getGrpElem(BitStream &src,int idx);
66  void reqWorldUpdateIfPak(BitStream &src);
67  void groupnetrecv_5(BitStream &src,int a,int b);
68 };
69 } // end of SEGSEvents namespace
70 
int unkn1
Definition: SceneEvent.h:58
Scene()
Definition: SceneEvent.cpp:18
int ref_crc
Definition: SceneEvent.h:38
int undos_PP
Definition: SceneEvent.h:48
void serializeto(BitStream &tgt) const override
Definition: SceneEvent.cpp:116
bool unkn2
Definition: SceneEvent.h:62
void reqWorldUpdateIfPak(BitStream &src)
Definition: SceneEvent.cpp:42
bool is_new_world
Definition: SceneEvent.h:50
Definition: SceneEvent.h:25
bool current_map_flags
Definition: SceneEvent.h:44
void groupnetrecv_5(BitStream &src, int a, int b)
Definition: SceneEvent.cpp:48
Definition: BitStream.h:34
CRUDLink_Event MapLinkEvent
Definition: EntitiesResponse.h:20
Definition: LinkLevelEvent.h:13
void getGrpElem(BitStream &src, int idx)
Definition: SceneEvent.cpp:22
std::vector< uint32_t > m_crc
Definition: SceneEvent.h:54
int var_4
Definition: SceneEvent.h:40
QString m_map_desc
Definition: SceneEvent.h:34
uint32_t ref_count
Definition: SceneEvent.h:36
int m_map_number
Definition: SceneEvent.h:60
void serializefrom(BitStream &src) override
Definition: SceneEvent.cpp:57
bool m_outdoor_mission_map
Definition: SceneEvent.h:42
std::vector< QString > m_trays
Definition: SceneEvent.h:52
std::vector< MapRef > m_refs
Definition: SceneEvent.h:56
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
EventSrc * src() const
Definition: SEGSEvent.h:65
size_t num_base_elems
Definition: SceneEvent.h:46