SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MapServerData.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
9 
17 
18 #include "NpcStore.h"
19 
20 class ColorAndPartPacker;
21 class QString;
22 
24 {
25  ColorAndPartPacker *packer_instance;
26  LevelExpAndDebt m_experience_and_debt_per_level;
27 
28  bool read_costumes(const QString &directory_path);
29  bool read_colors(const QString &src_filename);
30  bool read_origins(const QString &src_filename);
31  bool read_classes(const QString &src_filename);
32  bool read_exp_and_debt(const QString &src_filename);
33  bool read_keybinds(const QString &src_filename);
34  bool read_commands(const QString &src_filename);
35  bool read_npcs(const QString &directory_path);
36 public:
37  MapServerData();
39  bool read_runtime_data(const QString &directory_path);
40  const ColorAndPartPacker *getPacker() const { return packer_instance; }
41  int expForLevel(int lev) const;
42  int expDebtForLevel(int lev) const;
43  const NPCStorage & getNPCDefinitions() const
44  {
45  return m_npc_store;
46  }
56 };
The ColorAndPartPacker class is responsible for packing/unpacking colors and part names from BitStrea...
Definition: CommonNetStructures.h:34
Definition: costume_definitions.h:36
std::vector< struct Parse_Origin > Parse_AllOrigins
Definition: def_serializers.h:17
~MapServerData()
Definition: MapServerData.cpp:211
Definition: other_definitions.h:22
Parse_AllOrigins m_other_origins
Definition: MapServerData.h:50
std::vector< CharClass_Data > Parse_AllCharClasses
Definition: charclass_definitions.h:46
CostumeSet_Data m_costume_store
Definition: MapServerData.h:48
Definition: MapServerData.h:23
int expForLevel(int lev) const
Definition: MapServerData.cpp:248
std::vector< Costume2_Data > CostumeSet_Data
Definition: costume_definitions.h:103
NPCStorage m_npc_store
Definition: MapServerData.h:55
MapServerData()
Definition: MapServerData.cpp:206
Parse_AllCharClasses m_player_classes
Definition: MapServerData.h:51
const ColorAndPartPacker * getPacker() const
Definition: MapServerData.h:40
bool read_runtime_data(const QString &directory_path)
Definition: MapServerData.cpp:217
std::vector< Keybind_Profiles > Parse_AllKeyProfiles
Definition: keybind_definitions.h:472
Parse_AllCommandCategories m_command_categories
Definition: MapServerData.h:54
Pallette_Data m_supergroup_colors
Definition: MapServerData.h:47
const NPCStorage & getNPCDefinitions() const
Definition: MapServerData.h:43
Parse_AllOrigins m_player_origins
Definition: MapServerData.h:49
Parse_AllCharClasses m_other_classes
Definition: MapServerData.h:52
Definition: NpcStore.h:12
std::vector< CommandCategory_Entry > Parse_AllCommandCategories
Definition: keybind_definitions.h:474
int expDebtForLevel(int lev) const
Definition: MapServerData.cpp:254
Parse_AllKeyProfiles m_keybind_profiles
Definition: MapServerData.h:53