blob: f5706e1bab21da6f76e967bc77b8a7b44a323186 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "openvic-simulation/economy/production/ProductionType.hpp"
#include "openvic-simulation/types/fixed_point/FixedPoint.hpp"
#include "openvic-simulation/utility/Getters.hpp"
namespace OpenVic {
struct ResourceGatheringOperation {
private:
ProductionType const* PROPERTY_RW(production_type);
fixed_point_t PROPERTY(revenue_yesterday);
fixed_point_t PROPERTY(output_quantity_yesterday);
fixed_point_t PROPERTY(unsold_quantity_yesterday);
fixed_point_t PROPERTY_RW(size_multiplier);
ordered_map<Pop*, Pop::pop_size_t> PROPERTY(employees);
public:
constexpr bool is_valid() const {
return production_type != nullptr;
}
};
}
|