mirror of
https://github.com/Relintai/voxelman.git
synced 2025-03-14 18:28:50 +01:00
115 lines
3.8 KiB
C++
115 lines
3.8 KiB
C++
/*
|
|
Copyright (c) 2019-2020 Péter Magyar
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
|
|
#include "register_types.h"
|
|
|
|
#include "library/voxel_surface.h"
|
|
#include "library/voxel_surface_simple.h"
|
|
|
|
#include "library/voxelman_library.h"
|
|
#include "library/voxelman_library_simple.h"
|
|
|
|
#ifdef TEXTURE_PACKER_PRESENT
|
|
#include "library/voxel_surface_merger.h"
|
|
#include "library/voxelman_library_merger.h"
|
|
#endif
|
|
|
|
#include "data/voxel_light.h"
|
|
#include "meshers/transvoxel_uv_mesher/transvoxel_cell_data.h"
|
|
#include "meshers/transvoxel_uv_mesher/voxel_mesher_uv_transvoxel.h"
|
|
#include "meshers/voxel_mesher.h"
|
|
|
|
#include "world/block_voxel_structure.h"
|
|
#include "world/environment_data.h"
|
|
#include "world/voxel_chunk.h"
|
|
#include "world/voxel_chunk_prop_data.h"
|
|
#include "world/voxel_structure.h"
|
|
#include "world/voxel_world.h"
|
|
|
|
#include "world/default/voxel_chunk_default.h"
|
|
#include "world/default/voxel_world_default.h"
|
|
|
|
#include "meshers/cubic_mesher/voxel_cube_points.h"
|
|
#include "meshers/cubic_mesher/voxel_mesher_cubic.h"
|
|
|
|
#include "level_generator/voxelman_level_generator.h"
|
|
#include "level_generator/voxelman_level_generator_flat.h"
|
|
|
|
#include "areas/world_area.h"
|
|
|
|
#include "world/voxel_world_editor.h"
|
|
|
|
#include "meshers/blocky/voxel_mesher_blocky.h"
|
|
#include "meshers/blocky/voxel_mesher_liquid_blocky.h"
|
|
#include "world/blocky/voxel_chunk_blocky.h"
|
|
#include "world/blocky/voxel_world_blocky.h"
|
|
|
|
void register_voxelman_types() {
|
|
ClassDB::register_class<VoxelMesher>();
|
|
ClassDB::register_class<VoxelMesherDefault>();
|
|
ClassDB::register_class<VoxelMesherUVTransvoxel>();
|
|
ClassDB::register_class<TransvoxelCellData>();
|
|
|
|
ClassDB::register_class<VoxelSurface>();
|
|
ClassDB::register_class<VoxelSurfaceSimple>();
|
|
|
|
ClassDB::register_class<VoxelmanLibrary>();
|
|
ClassDB::register_class<VoxelmanLibrarySimple>();
|
|
|
|
#ifdef TEXTURE_PACKER_PRESENT
|
|
ClassDB::register_class<VoxelSurfaceMerger>();
|
|
ClassDB::register_class<VoxelmanLibraryMerger>();
|
|
#endif
|
|
|
|
ClassDB::register_class<VoxelLight>();
|
|
|
|
ClassDB::register_class<VoxelWorld>();
|
|
ClassDB::register_class<VoxelChunk>();
|
|
ClassDB::register_class<VoxelStructure>();
|
|
ClassDB::register_class<BlockVoxelStructure>();
|
|
ClassDB::register_class<EnvironmentData>();
|
|
ClassDB::register_class<VoxelChunkPropData>();
|
|
|
|
ClassDB::register_class<VoxelChunkDefault>();
|
|
ClassDB::register_class<VoxelWorldDefault>();
|
|
|
|
ClassDB::register_class<VoxelMesherCubic>();
|
|
ClassDB::register_class<VoxelCubePoints>();
|
|
|
|
ClassDB::register_class<VoxelMesherBlocky>();
|
|
ClassDB::register_class<VoxelWorldBlocky>();
|
|
ClassDB::register_class<VoxelChunkBlocky>();
|
|
ClassDB::register_class<VoxelMesherLiquidBlocky>();
|
|
|
|
ClassDB::register_class<VoxelmanLevelGenerator>();
|
|
ClassDB::register_class<VoxelmanLevelGeneratorFlat>();
|
|
|
|
ClassDB::register_class<WorldArea>();
|
|
|
|
#ifdef TOOLS_ENABLED
|
|
EditorPlugins::add_by_type<VoxelWorldEditorPlugin>();
|
|
#endif
|
|
}
|
|
|
|
void unregister_voxelman_types() {
|
|
}
|