mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
28 lines
504 B
C++
28 lines
504 B
C++
#pragma once
|
|
|
|
#include <cstdio>
|
|
#include <string>
|
|
#include <cassert>
|
|
#include <map>
|
|
#include "thirdparty/raknet/BitStream.h"
|
|
|
|
class RegionFile
|
|
{
|
|
public:
|
|
RegionFile(const std::string fileName);
|
|
~RegionFile();
|
|
void close();
|
|
bool open();
|
|
bool readChunk(int x, int z, RakNet::BitStream**);
|
|
bool write(int index, RakNet::BitStream&);
|
|
bool writeChunk(int x, int z, RakNet::BitStream&);
|
|
|
|
public:
|
|
FILE* m_pFile;
|
|
std::string m_fileName;
|
|
int* field_20;
|
|
int* field_24;
|
|
std::map<int, bool> field_28;
|
|
};
|
|
|