diff options
author | Wolfgang Aigner <wolfgang.aigner@yahoo.de> | 2023-04-06 18:44:07 +0200 |
---|---|---|
committer | Wolfgang Aigner <wolfgang.aigner@yahoo.de> | 2023-04-06 18:44:07 +0200 |
commit | 98dd680a641a2cbe0f1f93202a5beffdfd35c9f7 (patch) | |
tree | 1041c2aa577c3523faf37f362f1b50614004c242 /extension/src/openvic2/Good.hpp | |
parent | 383583733b2f4cd8c5e632c160afdb987b8615af (diff) |
Changed type of cost in Good.hpp/.cpp + codestyle
Diffstat (limited to 'extension/src/openvic2/Good.hpp')
-rw-r--r-- | extension/src/openvic2/Good.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/extension/src/openvic2/Good.hpp b/extension/src/openvic2/Good.hpp index 615b82c..dd2e8a8 100644 --- a/extension/src/openvic2/Good.hpp +++ b/extension/src/openvic2/Good.hpp @@ -1,14 +1,16 @@ #pragma once -#include <godot_cpp/variant/string.hpp> #include <string> +#include <godot_cpp/variant/string.hpp> namespace OpenVic2 { class Good { public: + using price_t = float; + godot::String identifier; godot::String category; - float_t cost; + price_t cost; godot::String colour; bool isAvailableAtStart; bool isTradable; @@ -16,8 +18,8 @@ namespace OpenVic2 { bool hasOverseasPenalty; 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); + Good(const godot::String& identifier, const godot::String& category, price_t cost, const godot::String& colour, + bool isAvailable, bool isTradable, bool isMoney, bool hasOverseasPenalty); ~Good(); }; }
\ No newline at end of file |