blob: beb07a9cf8add64e0d98f45ad7b6552b8bb399cf (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 02 80 00 00 02 80 08 02 00 00 00 83 af 5e | .PNG........IHDR...............^ |
0020 | 74 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13 01 00 | t....sRGB.........pHYs.......... |
0040 | 9a 9c 18 00 00 00 07 74 49 4d 45 07 db 04 1d 0e 32 1b 8e 55 df 59 00 00 00 1d 69 54 58 74 43 6f | .......tIME.....2..U.Y....iTXtCo |
0060 | 6d 6d 65 6e 74 00 00 00 00 00 43 72 65 61 74 65 64 20 77 69 74 68 20 47 49 4d 50 64 2e 65 07 00 | mment.....Created.with.GIMPd.e.. |
0080 | 00 09 80 49 44 41 54 78 da ed dd 31 6e db 30 14 80 61 b1 f0 09 98 85 d9 94 51 90 ee 7f 1d 8e 9c | ...IDATx...1n.0..a.......Q...... |
00a0 | 78 06 77 c8 12 18 ae db ca b6 44 51 df 37 16 48 d1 3e 0f 3f 9e cc 50 21 a6 71 00 00 b6 f5 cb 08 | x.w.......DQ.7.H.>.?..P!.q...... |
00c0 | 00 40 80 01 40 80 01 00 01 06 00 01 06 00 04 18 00 04 18 00 10 60 00 10 60 00 40 80 01 40 80 01 | .@..@........../*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef DATABASE_HEADER
#define DATABASE_HEADER
#include <vector>
#include <string>
#include "irr_v3d.h"
#include "irrlichttypes.h"
#include "util/basic_macros.h"
class Database
{
public:
virtual ~Database() {}
virtual void beginSave() {}
virtual void endSave() {}
virtual bool saveBlock(const v3s16 &pos, const std::string &data) = 0;
virtual void loadBlock(const v3s16 &pos, std::string *block) = 0;
virtual bool deleteBlock(const v3s16 &pos) = 0;
static s64 getBlockAsInteger(const v3s16 &pos);
static v3s16 getIntegerAsBlock(s64 i);
virtual void listAllLoadableBlocks(std::vector<v3s16> &dst) = 0;
virtual bool initialized() const { return true; }
};
#endif
|