aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Good.hpp
diff options
context:
space:
mode:
author ClarkeCode <33846391+ClarkeCode@users.noreply.github.com>2023-04-29 03:39:28 +0200
committer GitHub <noreply@github.com>2023-04-29 03:39:28 +0200
commit1f8545facd248bbf4ea0cd551fea5f7d9b0efdce (patch)
tree0accf6d2c5479afb99649351ccf485b63520ac81 /extension/src/openvic2/Good.hpp
parent05937359e8c53ee76dc3ce537dd70083a016f766 (diff)
parentef0d15bef9c35f261c4d09bbb23a2b8731acd3fc (diff)
Merge pull request #100 from OpenVic2Project/goods
Addition of goods struct
Diffstat (limited to 'extension/src/openvic2/Good.hpp')
-rw-r--r--extension/src/openvic2/Good.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/extension/src/openvic2/Good.hpp b/extension/src/openvic2/Good.hpp
new file mode 100644
index 0000000..54078dd
--- /dev/null
+++ b/extension/src/openvic2/Good.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <string>
+#include "Types.hpp"
+
+namespace OpenVic2 {
+ class Good : HasIdentifier {
+ public:
+ std::string category;
+ price_t cost;
+ std::string colour;
+ bool isAvailable;
+ bool isTradable;
+ 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) {};
+ };
+}