replace include guards with pragma once
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_BLOCK_HPP_
|
||||
#define VOXELS_BLOCK_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <optional>
|
||||
@@ -217,5 +216,3 @@ public:
|
||||
inline glm::ivec3 get_ground_direction(const Block& def, int rotation) {
|
||||
return -def.rotations.variants[rotation].axisY;
|
||||
}
|
||||
|
||||
#endif // VOXELS_BLOCK_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_CHUNK_HPP_
|
||||
#define VOXELS_CHUNK_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -74,5 +73,3 @@ public:
|
||||
|
||||
static void convert(ubyte* data, const ContentLUT* lut);
|
||||
};
|
||||
|
||||
#endif /* VOXELS_CHUNK_HPP_ */
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_CHUNKS_HPP_
|
||||
#define VOXELS_CHUNKS_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -115,5 +114,3 @@ public:
|
||||
void save(Chunk* chunk);
|
||||
void saveAll();
|
||||
};
|
||||
|
||||
#endif // VOXELS_CHUNKS_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_CHUNKSSTORAGE_HPP_
|
||||
#define VOXELS_CHUNKSSTORAGE_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
@@ -27,5 +26,3 @@ public:
|
||||
void getVoxels(VoxelsVolume* volume, bool backlight = false) const;
|
||||
std::shared_ptr<Chunk> create(int x, int z);
|
||||
};
|
||||
|
||||
#endif // VOXELS_CHUNKSSTORAGE_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_DEFAULTWORLDGENERATOR_HPP_
|
||||
#define VOXELS_DEFAULTWORLDGENERATOR_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "WorldGenerator.hpp"
|
||||
@@ -14,5 +13,3 @@ public:
|
||||
|
||||
void generate(voxel* voxels, int x, int z, int seed);
|
||||
};
|
||||
|
||||
#endif // VOXELS_DEFAULTWORLDGENERATOR_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_FLATWORLDGENERATOR_HPP_
|
||||
#define VOXELS_FLATWORLDGENERATOR_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "WorldGenerator.hpp"
|
||||
@@ -14,5 +13,3 @@ public:
|
||||
|
||||
void generate(voxel* voxels, int x, int z, int seed);
|
||||
};
|
||||
|
||||
#endif // VOXELS_FLATWORLDGENERATOR_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_VOXELSVOLUME_HPP_
|
||||
#define VOXELS_VOXELSVOLUME_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "constants.hpp"
|
||||
#include "typedefs.hpp"
|
||||
@@ -65,5 +64,3 @@ public:
|
||||
return lights[vox_index(bx - x, by - y, bz - z, w, d)];
|
||||
}
|
||||
};
|
||||
|
||||
#endif // VOXELS_VOXELSVOLUME_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_WORLDGENERATOR_HPP_
|
||||
#define VOXELS_WORLDGENERATOR_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -26,5 +25,3 @@ public:
|
||||
|
||||
virtual void generate(voxel* voxels, int x, int z, int seed) = 0;
|
||||
};
|
||||
|
||||
#endif // VOXELS_WORLDGENERATOR_HPP_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef VOXELS_VOXEL_HPP_
|
||||
#define VOXELS_VOXEL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
|
||||
@@ -40,5 +39,3 @@ struct voxel {
|
||||
blockstate state;
|
||||
};
|
||||
static_assert(sizeof(voxel) == 4);
|
||||
|
||||
#endif // VOXELS_VOXEL_HPP_
|
||||
|
||||
Reference in New Issue
Block a user