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-08-04 18:24:36 +0000
committerStijn Buys <ingar@osirion.org>2008-08-04 18:24:36 +0000
commit50a1e2b2fe3c207c7227df4941f2f66990db0c2c (patch)
tree5c4293babed4434d81cf9284f522dd0e74482cf0 /src/client
parentebd5cd9daabb2d2eb6f5e06f9433cc8e6a4e0f7a (diff)
network protocol version 5, netserver per-client updates, zone change protocol
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.cc24
-rw-r--r--src/client/client.h2
2 files changed, 26 insertions, 0 deletions
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<core::EntityGlobe *>(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);
};