diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-21 18:03:04 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-21 18:03:04 +0000 |
commit | cf1f5b659873c7eb1557ce7cedc17eed6ca03185 (patch) | |
tree | 3b74623b4ba90d2dc790977ab9ff62ba93af5872 /src/core | |
parent | 6b9fdfab38a3c068817a9d2e562ed2245e537004 (diff) |
entity set_color mutators
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 |