| 1346 | } |
| 1347 | |
| 1348 | UnitCompiler::UnitCompiler(Allocator &a) |
| 1349 | : _units(a) |
| 1350 | , _prefab_data(a) |
| 1351 | , _prefab_offsets(a) |
| 1352 | , _prefab_names(a) |
| 1353 | , _component_data(a) |
| 1354 | , _component_unit_index(a) |
| 1355 | , _component_type(a) |
| 1356 | , _component_info(a) |
| 1357 | , _unit_names(a) |
| 1358 | , _unit_parents(a) |
| 1359 | , _unit_roots(a) |
| 1360 | , _current_unit_index(UINT32_MAX) |
| 1361 | , _num_units(0) |
| 1362 | { |
| 1363 | unit_compiler::register_component_compiler(*this, "transform", &compile_transform, 0.0f); |
| 1364 | unit_compiler::register_component_compiler(*this, "camera", &compile_camera, 1.0f); |
| 1365 | unit_compiler::register_component_compiler(*this, "mesh_renderer", &compile_mesh_renderer, 1.0f); |
| 1366 | unit_compiler::register_component_compiler(*this, "sprite_renderer", &compile_sprite_renderer, 1.0f); |
| 1367 | unit_compiler::register_component_compiler(*this, "light", &compile_light, 1.0f); |
| 1368 | unit_compiler::register_component_compiler(*this, "lod_group", &compile_lod_group, 2.0f); |
| 1369 | unit_compiler::register_component_compiler(*this, "script", &compile_script, 1.0f); |
| 1370 | unit_compiler::register_component_compiler(*this, "collider", &physics_resource_internal::compile_collider, 1.0f); |
| 1371 | unit_compiler::register_component_compiler(*this, "actor", &physics_resource_internal::compile_actor, 2.0f); |
| 1372 | unit_compiler::register_component_compiler(*this, "mover", &physics_resource_internal::compile_mover, 2.0f); |
| 1373 | unit_compiler::register_component_compiler(*this, "fixed_joint", &physics_resource_internal::compile_fixed_joint, 3.0f); |
| 1374 | unit_compiler::register_component_compiler(*this, "hinge_joint", &physics_resource_internal::compile_hinge_joint, 3.0f); |
| 1375 | unit_compiler::register_component_compiler(*this, "spherical_joint", &physics_resource_internal::compile_spherical_joint, 3.0f); |
| 1376 | unit_compiler::register_component_compiler(*this, "limb_joint", &physics_resource_internal::compile_limb_joint, 3.0f); |
| 1377 | unit_compiler::register_component_compiler(*this, "spring_joint", &physics_resource_internal::compile_spring_joint, 3.0f); |
| 1378 | unit_compiler::register_component_compiler(*this, "d6_joint", &physics_resource_internal::compile_d6_joint, 3.0f); |
| 1379 | unit_compiler::register_component_compiler(*this, "animation_state_machine", &compile_animation_state_machine, 3.0f); |
| 1380 | unit_compiler::register_component_compiler(*this, "fog", &compile_fog, 0.0f); |
| 1381 | unit_compiler::register_component_compiler(*this, "global_lighting", &compile_global_lighting, 0.0f); |
| 1382 | unit_compiler::register_component_compiler(*this, "bloom", &compile_bloom, 0.0f); |
| 1383 | unit_compiler::register_component_compiler(*this, "tonemap", &compile_tonemap, 0.0f); |
| 1384 | } |
| 1385 | |
| 1386 | UnitCompiler::~UnitCompiler() |
| 1387 | { |
nothing calls this directly
no test coverage detected