|
@@ -314,16 +314,17 @@ private:
|
|
|
/// Skill count, also as last index
|
|
|
uint16 skill_num;
|
|
|
|
|
|
+ template<typename T, size_t S> bool parseNode(std::string nodeName, std::string subNodeName, YAML::Node node, T(&arr)[S]);
|
|
|
+
|
|
|
public:
|
|
|
SkillDatabase() : TypesafeCachedYamlDatabase("SKILL_DB", 3, 1) {
|
|
|
this->clear();
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- template<typename T, size_t S> bool parseNode(std::string nodeName, std::string subNodeName, YAML::Node node, T (&arr)[S]);
|
|
|
- uint64 parseBodyNode(const YAML::Node &node);
|
|
|
- void clear();
|
|
|
- void loadingFinished();
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node &node) override;
|
|
|
+ void clear() override;
|
|
|
+ void loadingFinished() override;
|
|
|
|
|
|
// Additional
|
|
|
uint16 get_index( uint16 skill_id, bool silent, const char* func, const char* file, int line );
|
|
@@ -462,8 +463,8 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- uint64 parseBodyNode(const YAML::Node& node);
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node& node) override;
|
|
|
};
|
|
|
|
|
|
extern SkillArrowDatabase skill_arrow_db;
|
|
@@ -480,8 +481,8 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- uint64 parseBodyNode(const YAML::Node& node);
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node& node) override;
|
|
|
};
|
|
|
|
|
|
struct s_skill_improvise_db {
|
|
@@ -494,8 +495,8 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- uint64 parseBodyNode(const YAML::Node& node);
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node& node) override;
|
|
|
};
|
|
|
|
|
|
void do_init_skill(void);
|
|
@@ -2569,8 +2570,10 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- uint64 parseBodyNode(const YAML::Node& node);
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node& node) override;
|
|
|
+
|
|
|
+ // Additional
|
|
|
std::shared_ptr<s_skill_spellbook_db> findBook(t_itemid nameid);
|
|
|
};
|
|
|
|
|
@@ -2590,8 +2593,8 @@ public:
|
|
|
|
|
|
}
|
|
|
|
|
|
- const std::string getDefaultLocation();
|
|
|
- uint64 parseBodyNode(const YAML::Node &node);
|
|
|
+ const std::string getDefaultLocation() override;
|
|
|
+ uint64 parseBodyNode(const YAML::Node &node) override;
|
|
|
};
|
|
|
|
|
|
extern MagicMushroomDatabase magic_mushroom_db;
|