diff options
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 5e68b5b..cc11664 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -33,6 +33,12 @@ namespace QuickMedia { CIRCLE }; + // TODO: Remove and create an Userdata class instead to replace the void* userdata in BodyItem + class BodyItemExtra { + public: + virtual ~BodyItemExtra() = default; + }; + struct Reaction { std::unique_ptr<Text> text; void *userdata = nullptr; @@ -146,6 +152,7 @@ namespace QuickMedia { ThumbnailMaskType thumbnail_mask_type = ThumbnailMaskType::NONE; sf::Vector2i thumbnail_size; std::vector<Reaction> reactions; // TODO: Move to a different body item type + std::shared_ptr<BodyItemExtra> extra; // TODO: Remove private: // TODO: Clean up these strings when set in text, and get_title for example should return |title_text.getString()| // TODO: Use sf::String instead, removes the need to convert to utf32 every time the text is dirty (for example when resizing window) |