aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Good.hpp
diff options
context:
space:
mode:
author ClarkeCode <clarke.john.robert@gmail.com>2023-04-28 23:34:45 +0200
committer ClarkeCode <clarke.john.robert@gmail.com>2023-04-28 23:34:45 +0200
commit1b35c3a4434873b98f8e3aa7770f0edd37ec053c (patch)
treed15169c42d04a09d6d1d74593fe21458cdb9f6df /extension/src/openvic2/Good.hpp
parent92d0f35b989b0164e2dd8c9a32213c6038e5d57f (diff)
Moved several type aliases to Types.hpp; Added HasColour class for items which need associated colours
Diffstat (limited to 'extension/src/openvic2/Good.hpp')
-rw-r--r--extension/src/openvic2/Good.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/extension/src/openvic2/Good.hpp b/extension/src/openvic2/Good.hpp
index 7953c51..54078dd 100644
--- a/extension/src/openvic2/Good.hpp
+++ b/extension/src/openvic2/Good.hpp
@@ -6,8 +6,6 @@
namespace OpenVic2 {
class Good : HasIdentifier {
public:
- using price_t = float;
-
std::string category;
price_t cost;
std::string colour;
@@ -16,6 +14,7 @@ namespace OpenVic2 {
bool isMoney;
bool hasOverseasPenalty;
+ Good(Good&&) = default;
Good(std::string const& identifier,std::string const& category, price_t cost, std::string const& colour,
bool isAvailable, bool isTradable, bool isMoney, bool hasOverseasPenalty) : HasIdentifier(identifier),
category(category), cost(cost), colour(colour), isAvailable(isAvailable), isMoney(isMoney), hasOverseasPenalty(hasOverseasPenalty) {};