1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

before daynight mesh cache

This commit is contained in:
Perttu Ahola 2010-12-18 17:46:00 +02:00
parent 15a43c5ed0
commit 240499dc2c
13 changed files with 442 additions and 216 deletions

View file

@ -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