mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
gzip compress/decompress + refactor
This commit is contained in:
parent
3837cdcf95
commit
b0165b1014
10 changed files with 119 additions and 65 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef WORLD_LEVEL_H_
|
||||
#define WORLD_LEVEL_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "../typedefs.h"
|
||||
#include "../settings.h"
|
||||
|
||||
|
|
@ -15,7 +17,7 @@ class ChunksStorage;
|
|||
|
||||
class Level {
|
||||
public:
|
||||
World* world;
|
||||
std::unique_ptr<World> world;
|
||||
const Content* const content;
|
||||
Player* player;
|
||||
Chunks* chunks;
|
||||
|
|
@ -34,6 +36,8 @@ public:
|
|||
~Level();
|
||||
|
||||
void update();
|
||||
|
||||
World* getWorld();
|
||||
};
|
||||
|
||||
#endif /* WORLD_LEVEL_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue