From 4d24c13e919348ba0e8670dafe3bb78cec96eb2c Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 24 Sep 2019 02:05:40 +0200 Subject: [PATCH] Added VoxelStructure skeleton class. --- SCsub | 1 + register_types.cpp | 2 ++ world/voxel_structure.cpp | 11 +++++++++++ world/voxel_structure.h | 18 ++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 world/voxel_structure.cpp create mode 100644 world/voxel_structure.h diff --git a/SCsub b/SCsub index 6b3abd9..6f550b2 100644 --- a/SCsub +++ b/SCsub @@ -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") diff --git a/register_types.cpp b/register_types.cpp index 96c8c3b..fca1212 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -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(); ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); diff --git a/world/voxel_structure.cpp b/world/voxel_structure.cpp new file mode 100644 index 0000000..c1fb5a0 --- /dev/null +++ b/world/voxel_structure.cpp @@ -0,0 +1,11 @@ +#include "voxel_structure.h" + +VoxelStructure::VoxelStructure() { + +} + +VoxelStructure::~VoxelStructure() { +} + +void VoxelStructure::_bind_methods() { +} diff --git a/world/voxel_structure.h b/world/voxel_structure.h new file mode 100644 index 0000000..a180160 --- /dev/null +++ b/world/voxel_structure.h @@ -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