SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EntitiesResponse.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
9 #include <vector>
10 #include <string>
11 #include "BitStream.h"
12 #include "MapRef.h"
13 #include "CRUD_Events.h"
14 #include "MapLink.h"
15 
17 typedef CRUDLink_Event MapLinkEvent; //<MapLink>
18 
20 {
21 public:
23  void is_incremental(bool v) {m_incremental=v;}
24  void serializefrom(BitStream &) override
25  {
26  }
27 
28  void serializeto(BitStream &tgt) const override;
29  const char *info() override { return m_incremental ? "Entities_Incremental" : "Entities_Full"; }
31  bool m_incremental=false; // if true then this is incremental update
34  bool debug_info=true;
35  uint32_t abs_time=0;
36  uint32_t db_time=0;
37  uint16_t m_debug_idx;
40  uint32_t m_command_idx[15];
41  std::string m_commands[15];
42  uint32_t m_num_commands2;
43  std::string m_commands2[15];
44 };
Definition: MapClientSession.h:32
void serializefrom(BitStream &) override
Definition: EntitiesResponse.h:24
Definition: BitStream.h:30
bool m_incremental
Definition: EntitiesResponse.h:31
MapClientSession * m_client
Definition: EntitiesResponse.h:30
bool ent_major_update
Definition: EntitiesResponse.h:32
uint16_t m_debug_idx
Definition: EntitiesResponse.h:37
std::string m_commands2[15]
Definition: EntitiesResponse.h:43
uint8_t m_interpolation_level
Definition: EntitiesResponse.h:38
bool debug_info
Definition: EntitiesResponse.h:34
void serializeto(BitStream &tgt) const override
Definition: EntitiesResponse.cpp:586
Definition: EntitiesResponse.h:19
const char * info() override
Definition: EntitiesResponse.h:29
uint32_t m_command_idx[15]
Definition: EntitiesResponse.h:40
float m_map_time_of_day
Definition: EntitiesResponse.h:33
CRUDLink_Event MapLinkEvent
Definition: EntitiesResponse.h:16
EntitiesResponse(MapClientSession *cl)
EntitiesResponse is sent to a client to inform it about the current world state.
Definition: EntitiesResponse.cpp:576
uint32_t db_time
Definition: EntitiesResponse.h:36
uint8_t m_interpolation_bits
Definition: EntitiesResponse.h:39
uint32_t abs_time
Definition: EntitiesResponse.h:35
std::string m_commands[15]
Definition: EntitiesResponse.h:41
void is_incremental(bool v)
Definition: EntitiesResponse.h:23
uint32_t m_num_commands2
Definition: EntitiesResponse.h:42