format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
+13
-12
@@ -1,16 +1,16 @@
|
||||
#ifndef VOXELS_CHUNK_HPP_
|
||||
#define VOXELS_CHUNK_HPP_
|
||||
|
||||
#include <memory>
|
||||
#include <stdlib.h>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "voxel.hpp"
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "../constants.hpp"
|
||||
#include "../lighting/Lightmap.hpp"
|
||||
#include "voxel.hpp"
|
||||
|
||||
inline constexpr int CHUNK_DATA_LEN = CHUNK_VOL*4;
|
||||
inline constexpr int CHUNK_DATA_LEN = CHUNK_VOL * 4;
|
||||
|
||||
class Lightmap;
|
||||
class ContentLUT;
|
||||
@@ -20,7 +20,8 @@ namespace dynamic {
|
||||
class Map;
|
||||
}
|
||||
|
||||
using chunk_inventories_map = std::unordered_map<uint, std::shared_ptr<Inventory>>;
|
||||
using chunk_inventories_map =
|
||||
std::unordered_map<uint, std::shared_ptr<Inventory>>;
|
||||
|
||||
class Chunk {
|
||||
public:
|
||||
@@ -29,13 +30,13 @@ public:
|
||||
voxel voxels[CHUNK_VOL] {};
|
||||
Lightmap lightmap;
|
||||
struct {
|
||||
bool modified: 1;
|
||||
bool ready: 1;
|
||||
bool loaded: 1;
|
||||
bool lighted: 1;
|
||||
bool unsaved: 1;
|
||||
bool loadedLights: 1;
|
||||
bool entities: 1;
|
||||
bool modified : 1;
|
||||
bool ready : 1;
|
||||
bool loaded : 1;
|
||||
bool lighted : 1;
|
||||
bool unsaved : 1;
|
||||
bool loadedLights : 1;
|
||||
bool entities : 1;
|
||||
} flags {};
|
||||
|
||||
/// @brief Block inventories map where key is index of block in voxels array
|
||||
|
||||
Reference in New Issue
Block a user