summaryrefslogtreecommitdiff
path: root/assetFactory
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory')
-rw-r--r--assetFactory/style.cpp2
-rw-r--r--assetFactory/style.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/assetFactory/style.cpp b/assetFactory/style.cpp
index fc5c34e..5303d96 100644
--- a/assetFactory/style.cpp
+++ b/assetFactory/style.cpp
@@ -42,5 +42,5 @@ Style::persist(Persistence::PersistenceStore & store)
}
};
- return STORE_HELPER(colour, ColourParser);
+ return STORE_HELPER(colour, ColourParser) && STORE_MEMBER(texture) && STORE_MEMBER(textureRotation);
}
diff --git a/assetFactory/style.h b/assetFactory/style.h
index e8fd012..84e5dab 100644
--- a/assetFactory/style.h
+++ b/assetFactory/style.h
@@ -28,6 +28,8 @@ public:
}
ColourAlpha colour {};
+ std::string texture;
+ std::string textureRotation; // Multiples of 90deg, no int/enum support
protected:
bool persist(Persistence::PersistenceStore & store);