Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/entity.h6
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