Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-21 18:03:04 +0000
committerStijn Buys <ingar@osirion.org>2008-12-21 18:03:04 +0000
commitcf1f5b659873c7eb1557ce7cedc17eed6ca03185 (patch)
tree3b74623b4ba90d2dc790977ab9ff62ba93af5872 /src/core/entity.h
parent6b9fdfab38a3c068817a9d2e562ed2245e537004 (diff)
entity set_color mutators
Diffstat (limited to 'src/core/entity.h')
-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