various adjustments
This commit is contained in:
@ -15,12 +15,6 @@ namespace Building {
|
||||
|
||||
class Factory {
|
||||
public:
|
||||
std::unique_ptr<Building::Cost> static create_test_cost() {
|
||||
auto cost = std::make_unique<Building::Cost>();
|
||||
cost->set_special_rate_consumption(0.15f);
|
||||
cost->set_special_rate_generation(0.10f);
|
||||
return cost;
|
||||
}
|
||||
|
||||
std::unique_ptr<Building::Simulation_Values> static create_test_simulation_values() {
|
||||
auto values = std::make_unique<Building::Simulation_Values>();
|
||||
@ -56,6 +50,9 @@ public:
|
||||
metadata->set_connection_power(100);
|
||||
metadata->set_grid_power(50);
|
||||
|
||||
metadata->set_special_rate_consumption(0.15f);
|
||||
metadata->set_special_rate_generation(0.10f);
|
||||
|
||||
auto consumptionProfile = std::vector<float>();
|
||||
auto generationProfile = std::vector<float>();
|
||||
|
||||
@ -74,7 +71,6 @@ public:
|
||||
std::unique_ptr<Building::Base> static create_test_building() {
|
||||
auto building = std::make_unique<Building::Base>();
|
||||
|
||||
building->set_cost(create_test_cost());
|
||||
building->set_values(create_test_simulation_values());
|
||||
building->set_metadata(create_test_metadata());
|
||||
|
||||
@ -90,7 +86,7 @@ public:
|
||||
community->set_name("Test Community");
|
||||
|
||||
std::vector<std::unique_ptr<Building::Base> > buildings;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
buildings.push_back(create_test_building());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user