aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Good.cpp
diff options
context:
space:
mode:
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..ecd2bfb
--- /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, price_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