From 9736548720a96c9c7f739edb0435d9ba4ad80652 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 15 Jan 2015 16:20:05 -0500 Subject: Add ability to delete MapBlocks from map Also add a Lua API and chatcommand for this --- src/database.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/database.h') diff --git a/src/database.h b/src/database.h index ffec7c977..f04c4aa50 100644 --- a/src/database.h +++ b/src/database.h @@ -37,6 +37,7 @@ public: virtual bool saveBlock(v3s16 blockpos, std::string &data) = 0; virtual std::string loadBlock(v3s16 blockpos) = 0; + virtual bool deleteBlock(v3s16 blockpos) = 0; s64 getBlockAsInteger(const v3s16 pos) const; v3s16 getIntegerAsBlock(s64 i) const; virtual void listAllLoadableBlocks(std::list &dst) = 0; -- cgit v1.2.3