aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Good.cpp
diff options
context:
space:
mode:
author Wolfgang Aigner <wolfgang.aigner@yahoo.de>2023-04-06 17:10:13 +0200
committer Wolfgang Aigner <wolfgang.aigner@yahoo.de>2023-04-06 17:42:27 +0200
commit383583733b2f4cd8c5e632c160afdb987b8615af (patch)
tree2425f372a655e8f87bc5d0d55663daa53141d615 /extension/src/openvic2/Good.cpp
parent0c110a5de255d7fbddf77b549cf019dcfef88751 (diff)
Basic loading of goods defined in goods.json
Diffstat (limited to 'extension/src/openvic2/Good.cpp')
-rw-r--r--extension/src/openvic2/Good.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/extension/src/openvic2/Good.cpp b/extension/src/openvic2/Good.cpp
new file mode 100644
index 0000000..3424099
--- /dev/null
+++ b/extension/src/openvic2/Good.cpp
@@ -0,0 +1,19 @@
+#include "Good.hpp"
+
+using namespace OpenVic2;;
+
+Good::Good() = default;
+
+Good::Good(const godot::String& identifier, const godot::String& category, float_t cost, const godot::String& colour,
+ bool isAvailable, bool isTradable, bool isMoney, bool hasOverseasPenalty) {
+ this->identifier = identifier;
+ this->category = category;
+ this->cost = cost;
+ this->colour = colour;
+ this->isAvailableAtStart = isAvailable;
+ this->isTradable = isTradable;
+ this->isMoney = isMoney;
+ this->hasOverseasPenalty = hasOverseasPenalty;
+}
+
+Good::~Good() = default; \ No newline at end of file