SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
NewEntity.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 // if this file is included stand-alone this will pull in common definitions
10 #include "GameCommand.h"
11 #include "MapEventTypes.h"
12 #include "BitStream.h"
13 
14 namespace SEGSEvents
15 {
17 // [[ev_def:type]]
18 class NewEntity : public MapLinkEvent
19 {
20 public:
22  {
23 
24  }
25  void serializeto(BitStream &) const override;
26  void serializefrom(BitStream &) override;
27  // [[ev_def:field]]
28  uint32_t m_cookie;
29  // [[ev_def:field]]
31  // [[ev_def:field]]
34 };
35 
36 } // end of SEGSEvents namespace
37 
Definition: BitStream.h:34
Definition: LinkLevelEvent.h:13
MapEventTypes
Definition: MapEventTypes.h:14
void serializefrom(BitStream &) override
Definition: NewEntity.cpp:22
uint32_t m_cookie
Definition: NewEntity.h:28
void serializeto(BitStream &) const override
Definition: NewEntity.cpp:17
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
bool m_new_character
Definition: NewEntity.h:30
a new entity entering a map
Definition: NewEntity.h:18
BitStream m_character_data
Definition: NewEntity.h:32
NewEntity()
Definition: NewEntity.h:21