]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/map.h
Formspec: Create a new class for inventorylists (#9287)
[dragonfireclient.git] / src / map.h
index 392ec3f256a02ee49eaf872825d645a3a4585bd0..da55fb432234f42b119262ddaa3d6e35dc3e81df 100644 (file)
--- a/src/map.h
+++ b/src/map.h
@@ -380,21 +380,12 @@ class ServerMap : public Map
                names when saving
        */
        void createDirs(const std::string &path);
-       // returns something like "map/sectors/xxxxxxxx"
-       std::string getSectorDir(v2s16 pos, int layout = 2);
-       // dirname: final directory name
-       v2s16 getSectorPos(const std::string &dirname);
-       v3s16 getBlockPos(const std::string &sectordir, const std::string &blockfile);
-       static std::string getBlockFilename(v3s16 p);
 
        /*
                Database functions
        */
        static MapDatabase *createDatabase(const std::string &name, const std::string &savedir, Settings &conf);
 
-       // Returns true if the database file does not exist
-       bool loadFromFolders();
-
        // Call these before and after saving of blocks
        void beginSave();
        void endSave();
@@ -407,9 +398,6 @@ class ServerMap : public Map
 
        bool saveBlock(MapBlock *block);
        static bool saveBlock(MapBlock *block, MapDatabase *db);
-       // This will generate a sector with getSector if not found.
-       void loadBlock(const std::string &sectordir, const std::string &blockfile,
-                       MapSector *sector, bool save_after_load=false);
        MapBlock* loadBlock(v3s16 p);
        // Database version
        void loadBlock(std::string *blob, v3s16 p3d, MapSector *sector, bool save_after_load=false);