Moved edition-related classes to a sub-folder
This commit is contained in:
parent
20dc0008f4
commit
0ac1b7e6dc
1
SCsub
1
SCsub
@ -14,6 +14,7 @@ files = [
|
|||||||
"util/*.cpp",
|
"util/*.cpp",
|
||||||
"terrain/*.cpp",
|
"terrain/*.cpp",
|
||||||
"math/*.cpp",
|
"math/*.cpp",
|
||||||
|
"edition/*.cpp",
|
||||||
"thirdparty/lz4/*.c"
|
"thirdparty/lz4/*.c"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "voxel_tool.h"
|
#include "voxel_tool.h"
|
||||||
#include "terrain/voxel_lod_terrain.h"
|
#include "../terrain/voxel_lod_terrain.h"
|
||||||
#include "voxel_buffer.h"
|
#include "../voxel_buffer.h"
|
||||||
|
|
||||||
Vector3 VoxelRaycastResult::_b_get_position() const {
|
Vector3 VoxelRaycastResult::_b_get_position() const {
|
||||||
return position.to_vec3();
|
return position.to_vec3();
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef VOXEL_TOOL_H
|
#ifndef VOXEL_TOOL_H
|
||||||
#define VOXEL_TOOL_H
|
#define VOXEL_TOOL_H
|
||||||
|
|
||||||
#include "math/rect3i.h"
|
#include "../math/rect3i.h"
|
||||||
#include <core/reference.h>
|
#include <core/reference.h>
|
||||||
|
|
||||||
class VoxelBuffer;
|
class VoxelBuffer;
|
@ -1,5 +1,5 @@
|
|||||||
#include "voxel_tool_buffer.h"
|
#include "voxel_tool_buffer.h"
|
||||||
#include "voxel_buffer.h"
|
#include "../voxel_buffer.h"
|
||||||
|
|
||||||
VoxelToolBuffer::VoxelToolBuffer(Ref<VoxelBuffer> vb) {
|
VoxelToolBuffer::VoxelToolBuffer(Ref<VoxelBuffer> vb) {
|
||||||
ERR_FAIL_COND(vb.is_null());
|
ERR_FAIL_COND(vb.is_null());
|
@ -1,6 +1,6 @@
|
|||||||
#include "voxel_tool_lod_terrain.h"
|
#include "voxel_tool_lod_terrain.h"
|
||||||
#include "terrain/voxel_lod_terrain.h"
|
#include "../terrain/voxel_lod_terrain.h"
|
||||||
#include "terrain/voxel_map.h"
|
#include "../terrain/voxel_map.h"
|
||||||
|
|
||||||
VoxelToolLodTerrain::VoxelToolLodTerrain(VoxelLodTerrain *terrain, Ref<VoxelMap> map) {
|
VoxelToolLodTerrain::VoxelToolLodTerrain(VoxelLodTerrain *terrain, Ref<VoxelMap> map) {
|
||||||
ERR_FAIL_COND(terrain == nullptr);
|
ERR_FAIL_COND(terrain == nullptr);
|
@ -1,7 +1,7 @@
|
|||||||
#include "voxel_tool_terrain.h"
|
#include "voxel_tool_terrain.h"
|
||||||
#include "terrain/voxel_map.h"
|
#include "../terrain/voxel_map.h"
|
||||||
#include "terrain/voxel_terrain.h"
|
#include "../terrain/voxel_terrain.h"
|
||||||
#include "util/voxel_raycast.h"
|
#include "../util/voxel_raycast.h"
|
||||||
|
|
||||||
VoxelToolTerrain::VoxelToolTerrain(VoxelTerrain *terrain, Ref<VoxelMap> map) {
|
VoxelToolTerrain::VoxelToolTerrain(VoxelTerrain *terrain, Ref<VoxelMap> map) {
|
||||||
ERR_FAIL_COND(terrain == nullptr);
|
ERR_FAIL_COND(terrain == nullptr);
|
@ -1,4 +1,5 @@
|
|||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
#include "edition/voxel_tool.h"
|
||||||
#include "meshers/blocky/voxel_mesher_blocky.h"
|
#include "meshers/blocky/voxel_mesher_blocky.h"
|
||||||
#include "meshers/dmc/voxel_mesher_dmc.h"
|
#include "meshers/dmc/voxel_mesher_dmc.h"
|
||||||
#include "meshers/transvoxel/voxel_mesher_transvoxel.h"
|
#include "meshers/transvoxel/voxel_mesher_transvoxel.h"
|
||||||
@ -18,7 +19,6 @@
|
|||||||
#include "voxel_library.h"
|
#include "voxel_library.h"
|
||||||
#include "voxel_memory_pool.h"
|
#include "voxel_memory_pool.h"
|
||||||
#include "voxel_string_names.h"
|
#include "voxel_string_names.h"
|
||||||
#include "voxel_tool.h"
|
|
||||||
|
|
||||||
void register_voxel_types() {
|
void register_voxel_types() {
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include "voxel_lod_terrain.h"
|
#include "voxel_lod_terrain.h"
|
||||||
|
#include "../edition/voxel_tool_lod_terrain.h"
|
||||||
#include "../math/rect3i.h"
|
#include "../math/rect3i.h"
|
||||||
#include "../streams/voxel_stream_file.h"
|
#include "../streams/voxel_stream_file.h"
|
||||||
#include "../util/profiling_clock.h"
|
#include "../util/profiling_clock.h"
|
||||||
#include "../voxel_string_names.h"
|
#include "../voxel_string_names.h"
|
||||||
#include "../voxel_tool_lod_terrain.h"
|
|
||||||
#include "voxel_map.h"
|
#include "voxel_map.h"
|
||||||
|
|
||||||
#include <core/core_string_names.h>
|
#include <core/core_string_names.h>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include "voxel_terrain.h"
|
#include "voxel_terrain.h"
|
||||||
|
#include "../edition/voxel_tool_terrain.h"
|
||||||
#include "../streams/voxel_stream_file.h"
|
#include "../streams/voxel_stream_file.h"
|
||||||
#include "../util/profiling_clock.h"
|
#include "../util/profiling_clock.h"
|
||||||
#include "../util/utility.h"
|
#include "../util/utility.h"
|
||||||
#include "../util/voxel_raycast.h"
|
#include "../util/voxel_raycast.h"
|
||||||
#include "../voxel_tool_terrain.h"
|
|
||||||
#include "voxel_block.h"
|
#include "voxel_block.h"
|
||||||
#include "voxel_map.h"
|
#include "voxel_map.h"
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include "voxel_memory_pool.h"
|
#include "voxel_memory_pool.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "edition/voxel_tool_buffer.h"
|
||||||
#include "voxel_buffer.h"
|
#include "voxel_buffer.h"
|
||||||
#include "voxel_tool_buffer.h"
|
|
||||||
|
|
||||||
#include <core/math/math_funcs.h>
|
#include <core/math/math_funcs.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user