From 92dfee736b9985db6509a6fdb567d78de402a0f9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 6 Jan 2012 18:27:13 +0000 Subject: Add support for Zone::ambient_color, bump network protocol version --- src/core/zone.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/core/zone.h') diff --git a/src/core/zone.h b/src/core/zone.h index f80999d..79e4a6c 100644 --- a/src/core/zone.h +++ b/src/core/zone.h @@ -86,6 +86,11 @@ public: return zone_id; } + /// ambient light color + inline math::Color const & ambient_color() { + return zone_ambient_color; + } + /// name of the skybox inline std::string const & sky() const { return zone_sky; @@ -115,7 +120,17 @@ public: zone_sky.assign(sky); } - ///set the default view + /// set the ambient light color + inline void set_ambient_color(const math::Color & ambient_color) { + zone_ambient_color.assign(ambient_color); + } + + /// set the ambient light color + inline void set_ambient_color(float r, float g, float b) { + zone_ambient_color.assign(r, g, b); + } + + /// set the default view inline void set_default_view(Entity *entity) { zone_defaultview = entity; } @@ -167,7 +182,8 @@ private: unsigned int zone_id; std::string zone_sky; - + math::Color zone_ambient_color; + Content zone_content; static Registry zone_registry; -- cgit v1.2.3