From 50a1e2b2fe3c207c7227df4941f2f66990db0c2c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Aug 2008 18:24:36 +0000 Subject: network protocol version 5, netserver per-client updates, zone change protocol --- src/client/client.cc | 24 ++++++++++++++++++++++++ src/client/client.h | 2 ++ 2 files changed, 26 insertions(+) (limited to 'src/client') diff --git a/src/client/client.cc b/src/client/client.cc index 93d254e..5d060aa 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -222,5 +222,29 @@ void Client::notify_message(std::string const & message) console()->notify(message); } +void Client::notify_zoneclear(core::Zone *zone) +{ + // FIXME unload zone textures + /* + if (!zone) + return; + + for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content.end(); i++) { + core:: Entity *entity = (*it); + + if (entity->type() == core::Entity::Globe) { + core::EntityGlobe *globe = static_cast(entity); + if (globe->render_texture) + render::Textures::unload(render_texture); + + } + + if (zone->sky_texture()) { + render::Textures::unload(zone->sky_texture()); + zone->set_sky_texture(0); + } + */ +} + } // namespace client diff --git a/src/client/client.h b/src/client/client.h index 9b60671..664bbb4 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -37,6 +37,8 @@ public: /// remove sound source notification virtual void notify_remove_sound(size_t source); + /// clear zone notification + virtual void notify_zoneclear(core::Zone *zone); }; -- cgit v1.2.3