diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-01-31 20:08:49 +0100 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-02-09 10:19:40 +0100 |
commit | e25653b2ca360ee25a655427277c816a8eb7b537 (patch) | |
tree | d87e27b55411a5b0319c38e62a98b9e5b2de1842 /src/openvic-simulation/economy/FactoryProducer.hpp | |
parent | f0fb01337d68a00147f582d04231b347cc1c8424 (diff) |
draft for factory productionfactory_turn
Diffstat (limited to 'src/openvic-simulation/economy/FactoryProducer.hpp')
-rw-r--r-- | src/openvic-simulation/economy/FactoryProducer.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/economy/FactoryProducer.hpp b/src/openvic-simulation/economy/FactoryProducer.hpp index 623ec48..5570b7a 100644 --- a/src/openvic-simulation/economy/FactoryProducer.hpp +++ b/src/openvic-simulation/economy/FactoryProducer.hpp @@ -13,6 +13,8 @@ namespace OpenVic { static constexpr uint8_t DAYS_OF_HISTORY = 7; using daily_profit_history_t = std::array<fixed_point_t, DAYS_OF_HISTORY>; + ordered_map<Job const*, Pop::pop_size_t> employees_per_job_cache; + uint8_t PROPERTY(profit_history_current); daily_profit_history_t PROPERTY(daily_profit_history); ProductionType const& PROPERTY(production_type); @@ -47,5 +49,8 @@ namespace OpenVic { fixed_point_t get_profitability_yesterday() const; fixed_point_t get_average_profitability_last_seven_days() const; + void produce( + const fixed_point_t input_modifier, const fixed_point_t throughput_modifier, const fixed_point_t output_modifier + ); }; } |