SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NpcStore.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
10 #include <QHash>
11 
12 struct NPCStorage
13 {
15  QHash<QString,Parse_NPC *> m_name_to_npc_def;
16  void prepare_dictionaries();
17  int npc_idx(const Parse_NPC *npc) const;
18  int npc_idx(const QString &name);
19  const Parse_NPC *npc_by_name(const QStringRef &name) const;
20 };
const Parse_NPC * npc_by_name(const QStringRef &name) const
Definition: NpcStore.cpp:46
AllNpcs_Data m_all_npcs
Definition: NpcStore.h:14
int npc_idx(const Parse_NPC *npc) const
Definition: NpcStore.cpp:35
std::vector< Parse_NPC > AllNpcs_Data
Definition: npc_definitions.h:69
Definition: npc_definitions.h:57
Definition: NpcStore.h:12
QHash< QString, Parse_NPC * > m_name_to_npc_def
Definition: NpcStore.h:15
void prepare_dictionaries()
Definition: NpcStore.cpp:17