aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/trading/MarketSellOrder.cpp
blob: 8522c8c929071a56c4ea8f65f14877686ac97f37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 }
   {}