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