diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/entity.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index 01fedc2..c75bd41 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -130,6 +130,12 @@ public: /// find a menu MenuDescription *find_menu(std::string const &label); + /// assign entity color + inline void set_color(const math::Color &color) { entity_color.assign(color); } + + /// assign entity secondary color + inline void set_color_second(const math::Color &color) { entity_color_second.assign(color); } + /*----- serializers ----------------------------------------------- */ /// serialize the entity to a stream |