blob: 7f0520d493b4fce7aaf3589e0ce7d558167bfb8b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "openvic-simulation/economy/BuildingType.hpp"
#include "openvic-simulation/economy/GoodDefinition.hpp"
#include "openvic-simulation/economy/production/ProductionType.hpp"
#include "openvic-dataloader/v2script/Parser.hpp"
namespace OpenVic {
struct EconomyManager {
private:
BuildingTypeManager PROPERTY_REF(building_type_manager);
GoodDefinitionManager PROPERTY_REF(good_definition_manager);
ProductionTypeManager PROPERTY_REF(production_type_manager);
public:
inline bool load_production_types_file(PopManager const& pop_manager, ovdl::v2script::Parser const& parser) {
return production_type_manager.load_production_types_file(good_definition_manager, pop_manager, parser);
}
inline bool load_buildings_file(ModifierManager& modifier_manager, ast::NodeCPtr root) {
return building_type_manager.load_buildings_file(
good_definition_manager, production_type_manager, modifier_manager, root
);
}
};
}
|