reorganize BB file loading abstractions

This commit is contained in:
Martin Michelsen
2022-09-03 01:13:11 -07:00
parent 89285fef98
commit 9a35f5ca63
41 changed files with 870 additions and 607 deletions
+8
View File
@@ -11,6 +11,7 @@
#include "Client.hh"
#include "FunctionCompiler.hh"
#include "GSLArchive.hh"
#include "Items.hh"
#include "LevelTable.hh"
#include "License.hh"
@@ -59,6 +60,8 @@ struct ServerState {
std::shared_ptr<const LevelTable> level_table;
std::shared_ptr<const BattleParamsIndex> battle_params;
std::shared_ptr<const CommonItemData> common_item_data;
std::shared_ptr<const GSLArchive> bb_data_gsl;
std::shared_ptr<const RareItemSet> rare_item_set;
std::shared_ptr<LicenseManager> license_manager;
@@ -128,4 +131,9 @@ struct ServerState {
const std::vector<PortConfiguration>& port_configs);
void create_menus(std::shared_ptr<const JSONObject> config_json);
std::shared_ptr<const std::string> load_bb_file(
const std::string& patch_index_filename,
const std::string& gsl_filename = "",
const std::string& bb_directory_filename = "") const;
};