LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git] / src / client.h
index 8bffbd1db9e1c0ada2ab5bb040c6dc95b90da706..9f36a257fe2f73074d68c677cedddc27f30edf01 100644 (file)
@@ -46,6 +46,8 @@ class ClientMediaDownloader;
 struct MapDrawControl;
 class MtEventManager;
 struct PointedThing;
+class Database;
+class Server;
 
 struct QueuedMeshUpdate
 {
@@ -303,6 +305,7 @@ public:
                        IrrlichtDevice *device,
                        const char *playername,
                        std::string password,
+                       bool is_simple_singleplayer_game,
                        MapDrawControl &control,
                        IWritableTextureSource *tsrc,
                        IWritableShaderSource *shsrc,
@@ -395,7 +398,7 @@ public:
        int getCrackLevel();
        void setCrack(int level, v3s16 pos);
 
-       void setHighlighted(v3s16 pos, bool show_hud);
+       void setHighlighted(v3s16 pos, bool show_higlighted);
        v3s16 getHighlighted(){ return m_highlighted_pos; }
 
        u16 getHP();
@@ -447,6 +450,7 @@ public:
        virtual ICraftDefManager* getCraftDefManager();
        virtual ITextureSource* getTextureSource();
        virtual IShaderSource* getShaderSource();
+       virtual scene::ISceneManager* getSceneManager();
        virtual u16 allocateUnknownNodeId(const std::string &name);
        virtual ISoundManager* getSoundManager();
        virtual MtEventManager* getEventManager();
@@ -464,6 +468,8 @@ public:
 
        LocalClientState getState() { return m_state; }
 
+       void makeScreenshot(IrrlichtDevice *device);
+
 private:
 
        // Virtual methods from con::PeerHandler
@@ -503,7 +509,7 @@ private:
        float m_inventory_from_server_age;
        std::set<v3s16> m_active_blocks;
        PacketCounter m_packetcounter;
-       bool m_show_hud;
+       bool m_show_highlighted;
        // Block mesh animation parameters
        float m_animation_time;
        int m_crack_level;
@@ -552,6 +558,13 @@ private:
 
        // own state
        LocalClientState m_state;
+
+       // Used for saving server map to disk client-side
+       Database *localdb;
+       Server *localserver;
+
+       // TODO: Add callback to update this when g_settings changes
+       bool m_cache_smooth_lighting;
 };
 
 #endif // !CLIENT_HEADER