aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/Types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic/Types.cpp')
-rw-r--r--src/openvic/Types.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic/Types.cpp b/src/openvic/Types.cpp
index ab5d12a..c7ad3ae 100644
--- a/src/openvic/Types.cpp
+++ b/src/openvic/Types.cpp
@@ -29,3 +29,8 @@ std::string HasColour::colour_to_hex_string(colour_t const colour) {
std::string HasColour::colour_to_hex_string() const {
return colour_to_hex_string(colour);
}
+
+HasIdentifierAndColour::HasIdentifierAndColour(std::string const& new_identifier,
+ const colour_t new_colour, bool can_be_null)
+ : HasIdentifier { new_identifier },
+ HasColour { new_colour, can_be_null } {}