diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-10-28 11:07:15 +0100 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-11-15 09:13:31 +0100 |
commit | a8ef75c96c579f74ee68789c5879df5262e36220 (patch) | |
tree | a10aeb9d4673f8eadf8bb397cf5f7cad3927e288 /src/openvic-simulation/economy/trading/MarketSellOrder.cpp | |
parent | e91bd6c3322a73c3ac6707329e81b6f2edc0b8be (diff) |
Add market placeholder
Diffstat (limited to 'src/openvic-simulation/economy/trading/MarketSellOrder.cpp')
-rw-r--r-- | src/openvic-simulation/economy/trading/MarketSellOrder.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/openvic-simulation/economy/trading/MarketSellOrder.cpp b/src/openvic-simulation/economy/trading/MarketSellOrder.cpp new file mode 100644 index 0000000..8522c8c --- /dev/null +++ b/src/openvic-simulation/economy/trading/MarketSellOrder.cpp @@ -0,0 +1,19 @@ +#include "MarketSellOrder.hpp" + +using namespace OpenVic; + +GoodMarketSellOrder::GoodMarketSellOrder( + const fixed_point_t new_quantity, + const std::function<void(const SellResult)> new_after_trade +): + quantity { new_quantity }, + after_trade { new_after_trade } + {} + +MarketSellOrder::MarketSellOrder( + GoodDefinition const& new_good, + const fixed_point_t new_quantity, + const std::function<void(const SellResult)> new_after_trade +): GoodMarketSellOrder(new_quantity, new_after_trade), + good { &new_good } + {}
\ No newline at end of file |