diff options
Diffstat (limited to 'extension/src/openvic2/Good.hpp')
-rw-r--r-- | extension/src/openvic2/Good.hpp | 22 |
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) {}; + }; +} |