summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-18 17:46:00 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-18 17:46:00 +0200
commit240499dc2c766c9d022e6df71e770a116a2c95de (patch)
tree3ae7c46b2ab20c226afb0d1ec5c6bddc80f33d48 /src/environment.h
parent15a43c5ed02130f1b1e07a0385530da197b0c846 (diff)
downloadminetest-240499dc2c766c9d022e6df71e770a116a2c95de.tar.gz
minetest-240499dc2c766c9d022e6df71e770a116a2c95de.tar.bz2
minetest-240499dc2c766c9d022e6df71e770a116a2c95de.zip
before daynight mesh cache
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index ebc80ad1a..6fdf6d33d 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -49,6 +49,7 @@ public:
void step(f32 dtime);
Map & getMap();
+
/*
Environment deallocates players after use.
*/
@@ -58,11 +59,18 @@ public:
Player * getPlayer(u16 peer_id);
core::list<Player*> getPlayers();
void printPlayers(std::ostream &o);
+
+ void updateMeshes(v3s16 blockpos);
+ void expireMeshes();
+ void setDaylightRatio(u32 r);
+ u32 getDaylightRatio();
+
private:
Map *m_map;
core::list<Player*> m_players;
// Debug output goes here
std::ostream &m_dout;
+ u32 m_daylight_ratio;
};
#endif