From 4cad4a27677b0490d3ba0018bc3404961f925ed5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 10:17:37 +0000 Subject: docking, bumps network protocol version --- src/core/zone.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/core/zone.h') diff --git a/src/core/zone.h b/src/core/zone.h index bb2074e..4b64ffb 100644 --- a/src/core/zone.h +++ b/src/core/zone.h @@ -71,7 +71,6 @@ public: /// create a zone from stream data Zone(std::istream & is); - /// delete a zone ~Zone(); @@ -92,6 +91,9 @@ public: /// texture id for the sky inline size_t sky_texture() const { return zone_sky_texture; } + /// default zone view + inline Entity *default_view() {return zone_defaultview; } + /// find an entity inside a zone Entity *find_entity(Entity *entity); @@ -115,6 +117,9 @@ public: /// set the texture id for the sky inline void set_sky_texture(size_t texture) { zone_sky_texture = texture; } + ///set the default view + inline void set_default_view(Entity *entity) { zone_defaultview = entity; } + /* ---- serializers ---------------------------------------- */ /// serialize a server-to-client update on a stream @@ -145,6 +150,8 @@ private: Content zone_content; static Registry zone_registry; + + Entity *zone_defaultview; }; } -- cgit v1.2.3