2020-01-31 19:52:37 +01:00
|
|
|
/*
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-05-31 18:26:36 +02:00
|
|
|
#include "register_types.h"
|
|
|
|
|
2019-12-03 03:39:53 +01:00
|
|
|
#include "containers/voxelman_queue.h"
|
2019-12-03 14:28:32 +01:00
|
|
|
#include "containers/voxelman_unbounded_queue.h"
|
2019-12-03 03:39:53 +01:00
|
|
|
|
2019-05-31 22:54:31 +02:00
|
|
|
#include "library/voxel_surface.h"
|
2019-11-09 18:36:17 +01:00
|
|
|
#include "library/voxel_surface_merger.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "library/voxel_surface_simple.h"
|
2019-11-09 17:26:16 +01:00
|
|
|
|
2019-05-31 22:54:31 +02:00
|
|
|
#include "library/voxelman_library.h"
|
2019-11-09 18:36:17 +01:00
|
|
|
#include "library/voxelman_library_merger.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "library/voxelman_library_simple.h"
|
2019-05-31 22:54:31 +02:00
|
|
|
|
|
|
|
#include "data/voxel_light.h"
|
2020-01-14 02:57:32 +01:00
|
|
|
#include "meshers/transvoxel_uv_mesher/transvoxel_cell_data.h"
|
|
|
|
#include "meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "meshers/voxel_mesher.h"
|
2019-05-31 22:54:31 +02:00
|
|
|
|
2019-10-07 22:22:47 +02:00
|
|
|
#include "world/environment_data.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "world/voxel_chunk.h"
|
2019-10-10 23:51:05 +02:00
|
|
|
#include "world/voxel_chunk_prop_data.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "world/voxel_structure.h"
|
|
|
|
#include "world/voxel_world.h"
|
2019-05-31 23:57:56 +02:00
|
|
|
|
2019-07-14 17:33:46 +02:00
|
|
|
#include "meshers/cubic_mesher/voxel_cube_points.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "meshers/cubic_mesher/voxel_mesher_cubic.h"
|
2019-07-13 22:03:23 +02:00
|
|
|
|
2019-11-07 21:32:31 +01:00
|
|
|
#include "props/prop_data.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "props/prop_data_entity.h"
|
2019-11-07 21:32:31 +01:00
|
|
|
#include "props/prop_data_entry.h"
|
|
|
|
#include "props/prop_data_light.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "props/prop_data_mesh.h"
|
2019-11-07 21:32:31 +01:00
|
|
|
#include "props/prop_data_prop.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "props/prop_data_scene.h"
|
2019-07-19 18:39:46 +02:00
|
|
|
|
2019-09-03 13:52:32 +02:00
|
|
|
#include "level_generator/voxelman_level_generator.h"
|
|
|
|
|
2019-11-10 01:03:48 +01:00
|
|
|
#include "areas/world_area.h"
|
|
|
|
|
2019-11-10 02:33:02 +01:00
|
|
|
#include "clutter/ground_clutter.h"
|
|
|
|
#include "clutter/ground_clutter_foliage.h"
|
|
|
|
|
2020-02-27 14:27:52 +01:00
|
|
|
#include "world/voxel_world_editor.h"
|
|
|
|
|
2020-02-27 22:50:18 +01:00
|
|
|
#include "prop_tool/prop_tool_entity.h"
|
2020-02-27 21:06:45 +01:00
|
|
|
#include "prop_tool/prop_tool_light.h"
|
2020-02-27 20:41:09 +01:00
|
|
|
#include "prop_tool/prop_tool_mesh.h"
|
2020-02-27 21:37:50 +01:00
|
|
|
#include "prop_tool/prop_tool_prop.h"
|
2020-02-27 21:23:45 +01:00
|
|
|
#include "prop_tool/prop_tool_scene.h"
|
2020-01-25 22:06:43 +01:00
|
|
|
//#include "prop_tool/prop_tool_editor_plugin.h"
|
|
|
|
|
2019-05-31 18:26:36 +02:00
|
|
|
void register_voxelman_types() {
|
2020-01-09 04:29:05 +01:00
|
|
|
ClassDB::register_class<VoxelmanQueue>();
|
2019-12-03 14:28:32 +01:00
|
|
|
ClassDB::register_class<VoxelmanUnboundedQueue>();
|
2019-12-03 03:39:53 +01:00
|
|
|
|
2019-05-31 22:54:31 +02:00
|
|
|
ClassDB::register_class<VoxelMesher>();
|
|
|
|
ClassDB::register_class<VoxelMesherTransvoxel>();
|
2019-09-04 18:33:19 +02:00
|
|
|
ClassDB::register_class<TransvoxelCellData>();
|
2019-05-31 22:54:31 +02:00
|
|
|
|
|
|
|
ClassDB::register_class<VoxelSurface>();
|
2019-11-09 17:26:16 +01:00
|
|
|
ClassDB::register_class<VoxelSurfaceSimple>();
|
2019-11-09 18:36:17 +01:00
|
|
|
ClassDB::register_class<VoxelSurfaceMerger>();
|
2019-11-09 17:26:16 +01:00
|
|
|
|
2019-05-31 22:54:31 +02:00
|
|
|
ClassDB::register_class<VoxelmanLibrary>();
|
2019-11-09 17:26:16 +01:00
|
|
|
ClassDB::register_class<VoxelmanLibrarySimple>();
|
2019-11-09 18:36:17 +01:00
|
|
|
ClassDB::register_class<VoxelmanLibraryMerger>();
|
2019-05-31 22:54:31 +02:00
|
|
|
|
|
|
|
ClassDB::register_class<VoxelLight>();
|
2020-01-09 04:29:05 +01:00
|
|
|
|
|
|
|
ClassDB::register_class<VoxelWorld>();
|
|
|
|
ClassDB::register_class<VoxelChunk>();
|
2019-09-24 02:05:40 +02:00
|
|
|
ClassDB::register_class<VoxelStructure>();
|
2019-10-07 22:22:47 +02:00
|
|
|
ClassDB::register_class<EnvironmentData>();
|
2019-10-10 23:51:05 +02:00
|
|
|
ClassDB::register_class<VoxelChunkPropData>();
|
2019-07-13 22:03:23 +02:00
|
|
|
|
2020-01-09 04:29:05 +01:00
|
|
|
ClassDB::register_class<VoxelMesherCubic>();
|
|
|
|
ClassDB::register_class<VoxelCubePoints>();
|
2019-07-19 18:39:46 +02:00
|
|
|
|
2019-11-07 23:39:25 +01:00
|
|
|
ClassDB::register_class<PropData>();
|
2019-11-07 21:32:31 +01:00
|
|
|
ClassDB::register_class<PropDataEntry>();
|
|
|
|
ClassDB::register_class<PropDataScene>();
|
|
|
|
ClassDB::register_class<PropDataMesh>();
|
|
|
|
ClassDB::register_class<PropDataLight>();
|
|
|
|
ClassDB::register_class<PropDataProp>();
|
|
|
|
ClassDB::register_class<PropDataEntity>();
|
2020-01-09 04:29:05 +01:00
|
|
|
|
|
|
|
ClassDB::register_class<VoxelmanLevelGenerator>();
|
2019-11-09 14:07:04 +01:00
|
|
|
|
2019-11-10 01:03:48 +01:00
|
|
|
ClassDB::register_class<WorldArea>();
|
2019-11-10 02:33:02 +01:00
|
|
|
|
|
|
|
ClassDB::register_class<GroundClutterFoliage>();
|
2020-01-25 22:06:43 +01:00
|
|
|
|
2020-02-27 22:50:18 +01:00
|
|
|
ClassDB::register_class<PropToolEntity>();
|
2020-02-27 21:37:50 +01:00
|
|
|
ClassDB::register_class<PropToolProp>();
|
2020-02-27 20:41:09 +01:00
|
|
|
ClassDB::register_class<PropToolMesh>();
|
2020-02-27 21:06:45 +01:00
|
|
|
ClassDB::register_class<PropToolLight>();
|
2020-02-27 21:23:45 +01:00
|
|
|
ClassDB::register_class<PropToolScene>();
|
2020-02-27 20:41:09 +01:00
|
|
|
|
2020-02-27 14:27:52 +01:00
|
|
|
#ifdef TOOLS_ENABLED
|
|
|
|
EditorPlugins::add_by_type<VoxelWorldEditorPlugin>();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//#ifdef TOOLS_ENABLED
|
|
|
|
// EditorPlugins::add_by_type<PropToolEditorPlugin>();
|
|
|
|
//#endif
|
2020-01-09 04:29:05 +01:00
|
|
|
}
|
2019-05-31 18:26:36 +02:00
|
|
|
|
|
|
|
void unregister_voxelman_types() {
|
|
|
|
}
|