Added VoxelStructure skeleton class.

This commit is contained in:
Relintai 2019-09-24 02:05:40 +02:00
parent 306dc575d8
commit 4d24c13e91
4 changed files with 32 additions and 0 deletions

1
SCsub
View File

@ -18,6 +18,7 @@ env.add_source_files(env.modules_sources,"meshers/transvoxel_tables.cpp")
env.add_source_files(env.modules_sources,"world/voxel_buffer.cpp")
env.add_source_files(env.modules_sources,"world/voxel_world.cpp")
env.add_source_files(env.modules_sources,"world/voxel_chunk.cpp")
env.add_source_files(env.modules_sources,"world/voxel_structure.cpp")
env.add_source_files(env.modules_sources,"meshers/cubic_mesher/voxel_mesher_cubic.cpp")

View File

@ -12,6 +12,7 @@
#include "world/voxel_buffer.h"
#include "world/voxel_world.h"
#include "world/voxel_chunk.h"
#include "world/voxel_structure.h"
#include "meshers/cubic_mesher/voxel_mesher_cubic.h"
#include "meshers/cubic_mesher/voxel_cube_points.h"
@ -38,6 +39,7 @@ void register_voxelman_types() {
ClassDB::register_class<VoxelBuffer>();
ClassDB::register_class<VoxelWorld>();
ClassDB::register_class<VoxelChunk>();
ClassDB::register_class<VoxelStructure>();
ClassDB::register_class<VoxelMesherCubic>();
ClassDB::register_class<VoxelCubePoints>();

11
world/voxel_structure.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "voxel_structure.h"
VoxelStructure::VoxelStructure() {
}
VoxelStructure::~VoxelStructure() {
}
void VoxelStructure::_bind_methods() {
}

18
world/voxel_structure.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef VOXEL_STRUCTURE_H
#define VOXEL_STRUCTURE_H
#include "core/reference.h"
class VoxelStructure : public Reference {
GDCLASS(VoxelStructure, Reference);
public:
VoxelStructure();
~VoxelStructure();
protected:
static void _bind_methods();
};
#endif