A lot of changes in almost all files

This commit is contained in:
MihailRis
2022-02-28 02:30:15 +03:00
committed by GitHub
parent cd3e737385
commit bc9d29cf68
28 changed files with 3485 additions and 476 deletions
+5 -1
View File
@@ -3,7 +3,8 @@
#include <map>
#include <unordered_map>
#include <string>
#include <glm/glm.hpp>
#define REGION_SIZE_BIT 5
#define REGION_SIZE (1 << (REGION_SIZE_BIT))
#define REGION_VOL ((REGION_SIZE) * (REGION_SIZE))
@@ -26,13 +27,16 @@ public:
void put(const char* chunkData, int x, int y);
bool readPlayer(glm::vec3& position, float& camX, float& camY);
bool readChunk(int x, int y, char* out);
bool getChunk(int x, int y, char* out);
void readRegion(char* fileContent);
unsigned int writeRegion(char* out, int x, int y, char** region);
void writePlayer(glm::vec3 position, float camX, float camY);
void write();
std::string getRegionFile(int x, int y);
std::string getPlayerFile();
};
extern void longToCoords(int& x, int& y, long key);