A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// Auto-generated by EHT (aot_components) — DO NOT EDIT.
// The type half of the AOT contract: a manifest names a component, and a
// compiled system needs the bytes. Regenerate with `pnpm eht`.
#include "esengine/aot/AotComponents.generated.hpp"
#include <cstdint>
#include <cstring>
#include <span>
#include "esengine/ecs/Entity.hpp"
#include "esengine/ecs/Registry.hpp"
#include "esengine/ecs/components/Billboard.hpp"
#include "esengine/ecs/components/BitmapText.hpp"
#include "esengine/ecs/components/Collider2D.hpp"
#include "esengine/ecs/components/RigidBody3D.hpp"
#include "esengine/ecs/components/Camera.hpp"
#include "esengine/ecs/components/Canvas.hpp"
#include "esengine/ecs/components/Hierarchy.hpp"
#include "esengine/ecs/components/ContentRect.hpp"
#include "esengine/ecs/components/Draggable.hpp"
#include "esengine/ecs/components/DragonBonesAnimation.hpp"
#include "esengine/ecs/components/FlexContainer.hpp"
#include "esengine/ecs/components/GroupOpacity.hpp"
#include "esengine/ecs/components/Impostor.hpp"
#include "esengine/ecs/components/Interactable.hpp"
#include "esengine/ecs/components/LODGroup.hpp"
#include "esengine/ecs/components/Light.hpp"
#include "esengine/ecs/components/MeshRenderer.hpp"
#include "esengine/ecs/components/Occluder.hpp"
#include "esengine/ecs/components/ParticleCollider.hpp"
#include "esengine/ecs/components/ParticleEmitter.hpp"
#include "esengine/ecs/components/ParticleForceField.hpp"
#include "esengine/ecs/components/PlanarReflection.hpp"
#include "esengine/ecs/components/ReflectionProbe.hpp"
#include "esengine/ecs/components/RigidBody2D.hpp"
#include "esengine/ecs/components/ShadowCaster2D.hpp"
#include "esengine/ecs/components/ShapeRenderer.hpp"
#include "esengine/ecs/components/SortingGroup.hpp"
#include "esengine/ecs/components/SpineAnimation.hpp"
#include "esengine/ecs/components/SpringBone.hpp"
#include "esengine/ecs/components/Sprite.hpp"
#include "esengine/ecs/components/SpriteMask.hpp"
#include "esengine/ecs/components/TilemapLayer.hpp"
#include "esengine/ecs/components/TrailRenderer.hpp"
#include "esengine/ecs/components/Transform.hpp"
#include "esengine/ecs/components/UIInteraction.hpp"
#include "esengine/ecs/components/UIMask.hpp"
#include "esengine/ecs/components/UINode.hpp"
#include "esengine/ecs/components/UIScroll.hpp"
#include "esengine/ecs/components/UIVisual.hpp"
#include "esengine/ecs/components/Velocity.hpp"
namespace esengine::aot {
namespace {
/**
* The dense column of a pool, as raw ids.
*
* `Entity` is a four-byte struct whose only member is that id, and
* Types.hpp static_asserts the size for exactly this — a dense array of
* them IS an array of ids. Copying it per frame would put the cost back
* where narrowing took it from.
*/
Candidates denseAsIds(std::span<const Entity> dense) {
static_assert(sizeof(Entity) == sizeof(std::uint32_t),
"a dense entity array is only an id array while these agree");
return std::span<const std::uint32_t>(
reinterpret_cast<const std::uint32_t*>(dense.data()), dense.size());
}
} // namespace
ComponentAt engineComponentAt(ecs::Registry& registry, const char* name) {
if (std::strcmp(name, "Billboard") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Billboard>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "BitmapText") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::BitmapText>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "BoxCollider2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::BoxCollider2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "BoxCollider3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::BoxCollider3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Camera") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Camera>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Canvas") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Canvas>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "CapsuleCollider2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::CapsuleCollider2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "CapsuleCollider3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::CapsuleCollider3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "CharacterController3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::CharacterController3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Children") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Children>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "CircleCollider2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::CircleCollider2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ContentRect") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ContentRect>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ConvexCollider3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ConvexCollider3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Draggable") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Draggable>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "DragonBonesAnimation") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::DragonBonesAnimation>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "FlexContainer") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::FlexContainer>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "GroupOpacity") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::GroupOpacity>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Impostor") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Impostor>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Interactable") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Interactable>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "LODGroup") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::LODGroup>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Light") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Light>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "LightProbeVolume") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::LightProbeVolume>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshCollider3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshCollider3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshInstances") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshInstances>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshLightmap") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshLightmap>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshMorph") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshMorph>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshRenderer") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshRenderer>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "MeshSkin") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::MeshSkin>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Occluder") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Occluder>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Parent") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Parent>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ParticleCollider") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ParticleCollider>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ParticleEmitter") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ParticleEmitter>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ParticleForceField") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ParticleForceField>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "PlanarReflection") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::PlanarReflection>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ReflectionProbe") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ReflectionProbe>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "RigidBody2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::RigidBody2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "RigidBody3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::RigidBody3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SegmentCollider2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SegmentCollider2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ShadowCaster2D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ShadowCaster2D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "ShapeRenderer") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::ShapeRenderer>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SortingGroup") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SortingGroup>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SphereCollider3D") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SphereCollider3D>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SpineAnimation") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SpineAnimation>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SpringBone") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SpringBone>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SpringBoneCollider") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SpringBoneCollider>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Sprite") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Sprite>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "SpriteMask") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::SpriteMask>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "TilemapLayer") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::TilemapLayer>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "TrailRenderer") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::TrailRenderer>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Transform") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Transform>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "UIInteraction") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::UIInteraction>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "UIMask") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::UIMask>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "UINode") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::UINode>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "UIScroll") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::UIScroll>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "UIVisual") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::UIVisual>(Entity::fromRaw(raw));
};
}
if (std::strcmp(name, "Velocity") == 0) {
return [®istry](std::uint32_t raw) -> void* {
return registry.tryGet<esengine::ecs::Velocity>(Entity::fromRaw(raw));
};
}
return {};
}
CandidatesOf engineComponentCandidates(ecs::Registry& registry, const char* name) {
if (std::strcmp(name, "Billboard") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Billboard>());
};
}
if (std::strcmp(name, "BitmapText") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::BitmapText>());
};
}
if (std::strcmp(name, "BoxCollider2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::BoxCollider2D>());
};
}
if (std::strcmp(name, "BoxCollider3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::BoxCollider3D>());
};
}
if (std::strcmp(name, "Camera") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Camera>());
};
}
if (std::strcmp(name, "Canvas") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Canvas>());
};
}
if (std::strcmp(name, "CapsuleCollider2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::CapsuleCollider2D>());
};
}
if (std::strcmp(name, "CapsuleCollider3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::CapsuleCollider3D>());
};
}
if (std::strcmp(name, "CharacterController3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::CharacterController3D>());
};
}
if (std::strcmp(name, "Children") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Children>());
};
}
if (std::strcmp(name, "CircleCollider2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::CircleCollider2D>());
};
}
if (std::strcmp(name, "ContentRect") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ContentRect>());
};
}
if (std::strcmp(name, "ConvexCollider3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ConvexCollider3D>());
};
}
if (std::strcmp(name, "Draggable") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Draggable>());
};
}
if (std::strcmp(name, "DragonBonesAnimation") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::DragonBonesAnimation>());
};
}
if (std::strcmp(name, "FlexContainer") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::FlexContainer>());
};
}
if (std::strcmp(name, "GroupOpacity") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::GroupOpacity>());
};
}
if (std::strcmp(name, "Impostor") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Impostor>());
};
}
if (std::strcmp(name, "Interactable") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Interactable>());
};
}
if (std::strcmp(name, "LODGroup") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::LODGroup>());
};
}
if (std::strcmp(name, "Light") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Light>());
};
}
if (std::strcmp(name, "LightProbeVolume") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::LightProbeVolume>());
};
}
if (std::strcmp(name, "MeshCollider3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshCollider3D>());
};
}
if (std::strcmp(name, "MeshInstances") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshInstances>());
};
}
if (std::strcmp(name, "MeshLightmap") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshLightmap>());
};
}
if (std::strcmp(name, "MeshMorph") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshMorph>());
};
}
if (std::strcmp(name, "MeshRenderer") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshRenderer>());
};
}
if (std::strcmp(name, "MeshSkin") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::MeshSkin>());
};
}
if (std::strcmp(name, "Occluder") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Occluder>());
};
}
if (std::strcmp(name, "Parent") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Parent>());
};
}
if (std::strcmp(name, "ParticleCollider") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleCollider>());
};
}
if (std::strcmp(name, "ParticleEmitter") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleEmitter>());
};
}
if (std::strcmp(name, "ParticleForceField") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleForceField>());
};
}
if (std::strcmp(name, "PlanarReflection") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::PlanarReflection>());
};
}
if (std::strcmp(name, "ReflectionProbe") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ReflectionProbe>());
};
}
if (std::strcmp(name, "RigidBody2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::RigidBody2D>());
};
}
if (std::strcmp(name, "RigidBody3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::RigidBody3D>());
};
}
if (std::strcmp(name, "SegmentCollider2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SegmentCollider2D>());
};
}
if (std::strcmp(name, "ShadowCaster2D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ShadowCaster2D>());
};
}
if (std::strcmp(name, "ShapeRenderer") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::ShapeRenderer>());
};
}
if (std::strcmp(name, "SortingGroup") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SortingGroup>());
};
}
if (std::strcmp(name, "SphereCollider3D") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SphereCollider3D>());
};
}
if (std::strcmp(name, "SpineAnimation") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SpineAnimation>());
};
}
if (std::strcmp(name, "SpringBone") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SpringBone>());
};
}
if (std::strcmp(name, "SpringBoneCollider") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SpringBoneCollider>());
};
}
if (std::strcmp(name, "Sprite") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Sprite>());
};
}
if (std::strcmp(name, "SpriteMask") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::SpriteMask>());
};
}
if (std::strcmp(name, "TilemapLayer") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::TilemapLayer>());
};
}
if (std::strcmp(name, "TrailRenderer") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::TrailRenderer>());
};
}
if (std::strcmp(name, "Transform") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Transform>());
};
}
if (std::strcmp(name, "UIInteraction") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::UIInteraction>());
};
}
if (std::strcmp(name, "UIMask") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::UIMask>());
};
}
if (std::strcmp(name, "UINode") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::UINode>());
};
}
if (std::strcmp(name, "UIScroll") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::UIScroll>());
};
}
if (std::strcmp(name, "UIVisual") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::UIVisual>());
};
}
if (std::strcmp(name, "Velocity") == 0) {
return [®istry]() -> Candidates {
return denseAsIds(registry.entitiesWith<esengine::ecs::Velocity>());
};
}
return {};
}
bool isEngineComponent(const char* name) {
if (std::strcmp(name, "Billboard") == 0) return true;
if (std::strcmp(name, "BitmapText") == 0) return true;
if (std::strcmp(name, "BoxCollider2D") == 0) return true;
if (std::strcmp(name, "BoxCollider3D") == 0) return true;
if (std::strcmp(name, "Camera") == 0) return true;
if (std::strcmp(name, "Canvas") == 0) return true;
if (std::strcmp(name, "CapsuleCollider2D") == 0) return true;
if (std::strcmp(name, "CapsuleCollider3D") == 0) return true;
if (std::strcmp(name, "CharacterController3D") == 0) return true;
if (std::strcmp(name, "Children") == 0) return true;
if (std::strcmp(name, "CircleCollider2D") == 0) return true;
if (std::strcmp(name, "ContentRect") == 0) return true;
if (std::strcmp(name, "ConvexCollider3D") == 0) return true;
if (std::strcmp(name, "Draggable") == 0) return true;
if (std::strcmp(name, "DragonBonesAnimation") == 0) return true;
if (std::strcmp(name, "FlexContainer") == 0) return true;
if (std::strcmp(name, "GroupOpacity") == 0) return true;
if (std::strcmp(name, "Impostor") == 0) return true;
if (std::strcmp(name, "Interactable") == 0) return true;
if (std::strcmp(name, "LODGroup") == 0) return true;
if (std::strcmp(name, "Light") == 0) return true;
if (std::strcmp(name, "LightProbeVolume") == 0) return true;
if (std::strcmp(name, "MeshCollider3D") == 0) return true;
if (std::strcmp(name, "MeshInstances") == 0) return true;
if (std::strcmp(name, "MeshLightmap") == 0) return true;
if (std::strcmp(name, "MeshMorph") == 0) return true;
if (std::strcmp(name, "MeshRenderer") == 0) return true;
if (std::strcmp(name, "MeshSkin") == 0) return true;
if (std::strcmp(name, "Occluder") == 0) return true;
if (std::strcmp(name, "Parent") == 0) return true;
if (std::strcmp(name, "ParticleCollider") == 0) return true;
if (std::strcmp(name, "ParticleEmitter") == 0) return true;
if (std::strcmp(name, "ParticleForceField") == 0) return true;
if (std::strcmp(name, "PlanarReflection") == 0) return true;
if (std::strcmp(name, "ReflectionProbe") == 0) return true;
if (std::strcmp(name, "RigidBody2D") == 0) return true;
if (std::strcmp(name, "RigidBody3D") == 0) return true;
if (std::strcmp(name, "SegmentCollider2D") == 0) return true;
if (std::strcmp(name, "ShadowCaster2D") == 0) return true;
if (std::strcmp(name, "ShapeRenderer") == 0) return true;
if (std::strcmp(name, "SortingGroup") == 0) return true;
if (std::strcmp(name, "SphereCollider3D") == 0) return true;
if (std::strcmp(name, "SpineAnimation") == 0) return true;
if (std::strcmp(name, "SpringBone") == 0) return true;
if (std::strcmp(name, "SpringBoneCollider") == 0) return true;
if (std::strcmp(name, "Sprite") == 0) return true;
if (std::strcmp(name, "SpriteMask") == 0) return true;
if (std::strcmp(name, "TilemapLayer") == 0) return true;
if (std::strcmp(name, "TrailRenderer") == 0) return true;
if (std::strcmp(name, "Transform") == 0) return true;
if (std::strcmp(name, "UIInteraction") == 0) return true;
if (std::strcmp(name, "UIMask") == 0) return true;
if (std::strcmp(name, "UINode") == 0) return true;
if (std::strcmp(name, "UIScroll") == 0) return true;
if (std::strcmp(name, "UIVisual") == 0) return true;
if (std::strcmp(name, "Velocity") == 0) return true;
return false;
}
} // namespace esengine::aot