SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
LocationVisited.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 "GameCommand.h"
10 #include "MapEventTypes.h"
11 
12 #include <QtCore/QString>
13 #include <glm/vec3.hpp>
14 
15 namespace SEGSEvents
16 {
17 // [[ev_def:type]]
19 {
20 public:
21  LocationVisited() : MapLinkEvent(MapEventTypes::evLocationVisited) {}
22 
23  // SerializableEvent interface
24  void serializefrom(BitStream &src) override;
25  void serializeto(BitStream &) const override;
26 
27  // [[ev_def:field]]
28  QString m_name;
29  // [[ev_def:field]]
30  glm::vec3 m_pos;
32 };
33 } // end of SEGSEvents namespace
34 
glm::vec3 m_pos
Definition: LocationVisited.h:30
Definition: BitStream.h:34
Definition: LinkLevelEvent.h:13
MapEventTypes
Definition: MapEventTypes.h:14
void serializefrom(BitStream &src) override
Definition: LocationVisited.cpp:19
void serializeto(BitStream &) const override
Definition: LocationVisited.cpp:27
QString m_name
Definition: LocationVisited.h:28
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
Definition: LocationVisited.h:18
LocationVisited()
Definition: LocationVisited.h:21
EventSrc * src() const
Definition: SEGSEvent.h:65