mirror of
https://github.com/Relintai/terraman_2d.git
synced 2024-11-12 10:15:18 +01:00
124 lines
4.2 KiB
C++
124 lines
4.2 KiB
C++
/*
|
|
Copyright (c) 2019-2022 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/terrain_2d_surface.h"
|
|
#include "library/terrain_2d_surface_simple.h"
|
|
|
|
#include "library/terrain_2d_material_cache.h"
|
|
#include "library/terrain_2d_library.h"
|
|
#include "library/terrain_2d_library_simple.h"
|
|
|
|
#ifdef TEXTURE_PACKER_PRESENT
|
|
#include "library/terrain_2d_surface_merger.h"
|
|
#include "library/terrain_2d_library_merger.h"
|
|
#include "library/terrain_2d_library_merger_pcm.h"
|
|
#include "library/terrain_2d_material_cache_pcm.h"
|
|
#endif
|
|
|
|
#include "data/terrain_2d_light.h"
|
|
#include "meshers/terrain_2d_mesher.h"
|
|
|
|
#include "world/block_terrain_2d_structure.h"
|
|
#include "world/terrain_2d_chunk.h"
|
|
#include "world/terrain_2d_environment_data.h"
|
|
#include "world/terrain_2d_structure.h"
|
|
#include "world/terrain_2d_world.h"
|
|
|
|
#include "world/default/terrain_2d_chunk_default.h"
|
|
#include "world/default/terrain_2d_world_default.h"
|
|
|
|
#include "level_generator/terrain_2d_level_generator.h"
|
|
#include "level_generator/terrain_2d_level_generator_flat.h"
|
|
|
|
#include "areas/terrain_2d_world_area.h"
|
|
|
|
#include "world/terrain_2d_world_editor.h"
|
|
|
|
#include "meshers/blocky/terrain_2d_mesher_blocky.h"
|
|
|
|
#include "world/blocky/terrain_2d_chunk_blocky.h"
|
|
#include "world/blocky/terrain_2d_world_blocky.h"
|
|
|
|
#include "nodes/terrain_2d_light_node.h"
|
|
|
|
#include "world/jobs/terrain_2d_job.h"
|
|
#include "world/jobs/terrain_2d_light_job.h"
|
|
#include "world/jobs/terrain_2d_mesher_job_step.h"
|
|
#include "world/jobs/terrain_2d_prop_job.h"
|
|
#include "world/jobs/terrain_2d_terrain_job.h"
|
|
|
|
void register_terraman_2d_types() {
|
|
ClassDB::register_class<TerrainMesher>();
|
|
ClassDB::register_class<TerrainMesherDefault>();
|
|
|
|
ClassDB::register_class<TerrainSurface>();
|
|
ClassDB::register_class<TerrainSurfaceSimple>();
|
|
|
|
ClassDB::register_class<TerrainLibrary>();
|
|
ClassDB::register_class<TerrainLibrarySimple>();
|
|
|
|
ClassDB::register_class<TerrainMaterialCache>();
|
|
|
|
#ifdef TEXTURE_PACKER_PRESENT
|
|
ClassDB::register_class<TerrainSurfaceMerger>();
|
|
ClassDB::register_class<TerrainLibraryMerger>();
|
|
ClassDB::register_class<TerrainLibraryMergerPCM>();
|
|
ClassDB::register_class<TerrainMaterialCachePCM>();
|
|
#endif
|
|
|
|
ClassDB::register_class<TerrainLight>();
|
|
ClassDB::register_class<TerrainLightNode>();
|
|
|
|
ClassDB::register_class<TerrainWorld>();
|
|
ClassDB::register_class<TerrainChunk>();
|
|
ClassDB::register_class<TerrainStructure>();
|
|
ClassDB::register_class<BlockTerrainStructure>();
|
|
ClassDB::register_class<TerrainEnvironmentData>();
|
|
|
|
ClassDB::register_class<TerrainChunkDefault>();
|
|
ClassDB::register_class<TerrainWorldDefault>();
|
|
|
|
ClassDB::register_class<TerrainMesherBlocky>();
|
|
ClassDB::register_class<TerrainWorldBlocky>();
|
|
ClassDB::register_class<TerrainChunkBlocky>();
|
|
|
|
ClassDB::register_class<TerrainLevelGenerator>();
|
|
ClassDB::register_class<TerrainLevelGeneratorFlat>();
|
|
|
|
ClassDB::register_class<TerrainWorldArea>();
|
|
|
|
ClassDB::register_class<TerrainJob>();
|
|
ClassDB::register_class<TerrainTerrainJob>();
|
|
ClassDB::register_class<TerrainMesherJobStep>();
|
|
ClassDB::register_class<TerrainLightJob>();
|
|
ClassDB::register_class<TerrainPropJob>();
|
|
|
|
#ifdef TOOLS_ENABLED
|
|
EditorPlugins::add_by_type<TerrainWorldEditorPlugin>();
|
|
#endif
|
|
}
|
|
|
|
void unregister_terraman_2d_types() {
|
|
}
|