SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
LFG.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 "CommonNetStructures.h"
10 
11 class Entity;
12 
13 struct LFGMember
14 {
15  QString m_name; // player name
16  QString m_classname; // player class
17  QString m_origin; // player origin
18  uint32_t m_level; // player level
19  template<class Archive>
20  void serialize(Archive &ar)
21  {
22  ar(m_name,m_classname,m_origin,m_level);
23  }
24 };
25 
26 /*
27  * LFG Methods
28  */
29 extern std::vector<LFGMember> g_lfg_list;
30 
31 void addLFG(Entity &src);
32 void removeLFG(Entity &src);
33 void dumpLFGList();
QString m_classname
Definition: LFG.h:16
void addLFG(Entity &src)
Definition: LFG.cpp:25
uint32_t m_level
Definition: LFG.h:18
Definition: LFG.h:13
QString m_origin
Definition: LFG.h:17
void dumpLFGList()
Definition: LFG.cpp:55
void serialize(Archive &ar)
Definition: LFG.h:20
Definition: Entity.h:134
QString m_name
Definition: LFG.h:15
std::vector< LFGMember > g_lfg_list
Definition: LFG.cpp:23
void removeLFG(Entity &src)
Definition: LFG.cpp:38