From 240499dc2c766c9d022e6df71e770a116a2c95de Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 18 Dec 2010 17:46:00 +0200 Subject: before daynight mesh cache --- src/environment.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/environment.h') 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 getPlayers(); void printPlayers(std::ostream &o); + + void updateMeshes(v3s16 blockpos); + void expireMeshes(); + void setDaylightRatio(u32 r); + u32 getDaylightRatio(); + private: Map *m_map; core::list m_players; // Debug output goes here std::ostream &m_dout; + u32 m_daylight_ratio; }; #endif -- cgit v1.2.3