Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
AotComponents.generated.cpp
Go to the documentation of this file.
1// Auto-generated by EHT (aot_components) — DO NOT EDIT.
2// The type half of the AOT contract: a manifest names a component, and a
3// compiled system needs the bytes. Regenerate with `pnpm eht`.
5
6#include <cstdint>
7#include <cstring>
8#include <span>
9
52
53namespace esengine::aot {
54namespace {
55
64Candidates denseAsIds(std::span<const Entity> dense) {
65 static_assert(sizeof(Entity) == sizeof(std::uint32_t),
66 "a dense entity array is only an id array while these agree");
67 return std::span<const std::uint32_t>(
68 reinterpret_cast<const std::uint32_t*>(dense.data()), dense.size());
69}
70
71} // namespace
72
73ComponentAt engineComponentAt(ecs::Registry& registry, const char* name) {
74 if (std::strcmp(name, "Billboard") == 0) {
75 return [&registry](std::uint32_t raw) -> void* {
76 return registry.tryGet<esengine::ecs::Billboard>(Entity::fromRaw(raw));
77 };
78 }
79 if (std::strcmp(name, "BitmapText") == 0) {
80 return [&registry](std::uint32_t raw) -> void* {
82 };
83 }
84 if (std::strcmp(name, "BoxCollider2D") == 0) {
85 return [&registry](std::uint32_t raw) -> void* {
87 };
88 }
89 if (std::strcmp(name, "BoxCollider3D") == 0) {
90 return [&registry](std::uint32_t raw) -> void* {
92 };
93 }
94 if (std::strcmp(name, "Camera") == 0) {
95 return [&registry](std::uint32_t raw) -> void* {
96 return registry.tryGet<esengine::ecs::Camera>(Entity::fromRaw(raw));
97 };
98 }
99 if (std::strcmp(name, "Canvas") == 0) {
100 return [&registry](std::uint32_t raw) -> void* {
101 return registry.tryGet<esengine::ecs::Canvas>(Entity::fromRaw(raw));
102 };
103 }
104 if (std::strcmp(name, "CapsuleCollider2D") == 0) {
105 return [&registry](std::uint32_t raw) -> void* {
107 };
108 }
109 if (std::strcmp(name, "CapsuleCollider3D") == 0) {
110 return [&registry](std::uint32_t raw) -> void* {
112 };
113 }
114 if (std::strcmp(name, "CharacterController3D") == 0) {
115 return [&registry](std::uint32_t raw) -> void* {
117 };
118 }
119 if (std::strcmp(name, "Children") == 0) {
120 return [&registry](std::uint32_t raw) -> void* {
121 return registry.tryGet<esengine::ecs::Children>(Entity::fromRaw(raw));
122 };
123 }
124 if (std::strcmp(name, "CircleCollider2D") == 0) {
125 return [&registry](std::uint32_t raw) -> void* {
127 };
128 }
129 if (std::strcmp(name, "ContentRect") == 0) {
130 return [&registry](std::uint32_t raw) -> void* {
132 };
133 }
134 if (std::strcmp(name, "ConvexCollider3D") == 0) {
135 return [&registry](std::uint32_t raw) -> void* {
137 };
138 }
139 if (std::strcmp(name, "Draggable") == 0) {
140 return [&registry](std::uint32_t raw) -> void* {
141 return registry.tryGet<esengine::ecs::Draggable>(Entity::fromRaw(raw));
142 };
143 }
144 if (std::strcmp(name, "DragonBonesAnimation") == 0) {
145 return [&registry](std::uint32_t raw) -> void* {
147 };
148 }
149 if (std::strcmp(name, "FlexContainer") == 0) {
150 return [&registry](std::uint32_t raw) -> void* {
152 };
153 }
154 if (std::strcmp(name, "GroupOpacity") == 0) {
155 return [&registry](std::uint32_t raw) -> void* {
157 };
158 }
159 if (std::strcmp(name, "Impostor") == 0) {
160 return [&registry](std::uint32_t raw) -> void* {
161 return registry.tryGet<esengine::ecs::Impostor>(Entity::fromRaw(raw));
162 };
163 }
164 if (std::strcmp(name, "Interactable") == 0) {
165 return [&registry](std::uint32_t raw) -> void* {
167 };
168 }
169 if (std::strcmp(name, "LODGroup") == 0) {
170 return [&registry](std::uint32_t raw) -> void* {
171 return registry.tryGet<esengine::ecs::LODGroup>(Entity::fromRaw(raw));
172 };
173 }
174 if (std::strcmp(name, "Light") == 0) {
175 return [&registry](std::uint32_t raw) -> void* {
176 return registry.tryGet<esengine::ecs::Light>(Entity::fromRaw(raw));
177 };
178 }
179 if (std::strcmp(name, "LightProbeVolume") == 0) {
180 return [&registry](std::uint32_t raw) -> void* {
182 };
183 }
184 if (std::strcmp(name, "MeshCollider3D") == 0) {
185 return [&registry](std::uint32_t raw) -> void* {
187 };
188 }
189 if (std::strcmp(name, "MeshInstances") == 0) {
190 return [&registry](std::uint32_t raw) -> void* {
192 };
193 }
194 if (std::strcmp(name, "MeshLightmap") == 0) {
195 return [&registry](std::uint32_t raw) -> void* {
197 };
198 }
199 if (std::strcmp(name, "MeshMorph") == 0) {
200 return [&registry](std::uint32_t raw) -> void* {
201 return registry.tryGet<esengine::ecs::MeshMorph>(Entity::fromRaw(raw));
202 };
203 }
204 if (std::strcmp(name, "MeshRenderer") == 0) {
205 return [&registry](std::uint32_t raw) -> void* {
207 };
208 }
209 if (std::strcmp(name, "MeshSkin") == 0) {
210 return [&registry](std::uint32_t raw) -> void* {
211 return registry.tryGet<esengine::ecs::MeshSkin>(Entity::fromRaw(raw));
212 };
213 }
214 if (std::strcmp(name, "Occluder") == 0) {
215 return [&registry](std::uint32_t raw) -> void* {
216 return registry.tryGet<esengine::ecs::Occluder>(Entity::fromRaw(raw));
217 };
218 }
219 if (std::strcmp(name, "Parent") == 0) {
220 return [&registry](std::uint32_t raw) -> void* {
221 return registry.tryGet<esengine::ecs::Parent>(Entity::fromRaw(raw));
222 };
223 }
224 if (std::strcmp(name, "ParticleCollider") == 0) {
225 return [&registry](std::uint32_t raw) -> void* {
227 };
228 }
229 if (std::strcmp(name, "ParticleEmitter") == 0) {
230 return [&registry](std::uint32_t raw) -> void* {
232 };
233 }
234 if (std::strcmp(name, "ParticleForceField") == 0) {
235 return [&registry](std::uint32_t raw) -> void* {
237 };
238 }
239 if (std::strcmp(name, "PlanarReflection") == 0) {
240 return [&registry](std::uint32_t raw) -> void* {
242 };
243 }
244 if (std::strcmp(name, "ReflectionProbe") == 0) {
245 return [&registry](std::uint32_t raw) -> void* {
247 };
248 }
249 if (std::strcmp(name, "RigidBody2D") == 0) {
250 return [&registry](std::uint32_t raw) -> void* {
252 };
253 }
254 if (std::strcmp(name, "RigidBody3D") == 0) {
255 return [&registry](std::uint32_t raw) -> void* {
257 };
258 }
259 if (std::strcmp(name, "SegmentCollider2D") == 0) {
260 return [&registry](std::uint32_t raw) -> void* {
262 };
263 }
264 if (std::strcmp(name, "ShadowCaster2D") == 0) {
265 return [&registry](std::uint32_t raw) -> void* {
267 };
268 }
269 if (std::strcmp(name, "ShapeRenderer") == 0) {
270 return [&registry](std::uint32_t raw) -> void* {
272 };
273 }
274 if (std::strcmp(name, "SortingGroup") == 0) {
275 return [&registry](std::uint32_t raw) -> void* {
277 };
278 }
279 if (std::strcmp(name, "SphereCollider3D") == 0) {
280 return [&registry](std::uint32_t raw) -> void* {
282 };
283 }
284 if (std::strcmp(name, "SpineAnimation") == 0) {
285 return [&registry](std::uint32_t raw) -> void* {
287 };
288 }
289 if (std::strcmp(name, "SpringBone") == 0) {
290 return [&registry](std::uint32_t raw) -> void* {
291 return registry.tryGet<esengine::ecs::SpringBone>(Entity::fromRaw(raw));
292 };
293 }
294 if (std::strcmp(name, "SpringBoneCollider") == 0) {
295 return [&registry](std::uint32_t raw) -> void* {
297 };
298 }
299 if (std::strcmp(name, "Sprite") == 0) {
300 return [&registry](std::uint32_t raw) -> void* {
301 return registry.tryGet<esengine::ecs::Sprite>(Entity::fromRaw(raw));
302 };
303 }
304 if (std::strcmp(name, "SpriteMask") == 0) {
305 return [&registry](std::uint32_t raw) -> void* {
306 return registry.tryGet<esengine::ecs::SpriteMask>(Entity::fromRaw(raw));
307 };
308 }
309 if (std::strcmp(name, "TilemapLayer") == 0) {
310 return [&registry](std::uint32_t raw) -> void* {
312 };
313 }
314 if (std::strcmp(name, "TrailRenderer") == 0) {
315 return [&registry](std::uint32_t raw) -> void* {
317 };
318 }
319 if (std::strcmp(name, "Transform") == 0) {
320 return [&registry](std::uint32_t raw) -> void* {
321 return registry.tryGet<esengine::ecs::Transform>(Entity::fromRaw(raw));
322 };
323 }
324 if (std::strcmp(name, "UIInteraction") == 0) {
325 return [&registry](std::uint32_t raw) -> void* {
327 };
328 }
329 if (std::strcmp(name, "UIMask") == 0) {
330 return [&registry](std::uint32_t raw) -> void* {
331 return registry.tryGet<esengine::ecs::UIMask>(Entity::fromRaw(raw));
332 };
333 }
334 if (std::strcmp(name, "UINode") == 0) {
335 return [&registry](std::uint32_t raw) -> void* {
336 return registry.tryGet<esengine::ecs::UINode>(Entity::fromRaw(raw));
337 };
338 }
339 if (std::strcmp(name, "UIScroll") == 0) {
340 return [&registry](std::uint32_t raw) -> void* {
341 return registry.tryGet<esengine::ecs::UIScroll>(Entity::fromRaw(raw));
342 };
343 }
344 if (std::strcmp(name, "UIVisual") == 0) {
345 return [&registry](std::uint32_t raw) -> void* {
346 return registry.tryGet<esengine::ecs::UIVisual>(Entity::fromRaw(raw));
347 };
348 }
349 if (std::strcmp(name, "Velocity") == 0) {
350 return [&registry](std::uint32_t raw) -> void* {
351 return registry.tryGet<esengine::ecs::Velocity>(Entity::fromRaw(raw));
352 };
353 }
354 return {};
355}
356
358 if (std::strcmp(name, "Billboard") == 0) {
359 return [&registry]() -> Candidates {
360 return denseAsIds(registry.entitiesWith<esengine::ecs::Billboard>());
361 };
362 }
363 if (std::strcmp(name, "BitmapText") == 0) {
364 return [&registry]() -> Candidates {
365 return denseAsIds(registry.entitiesWith<esengine::ecs::BitmapText>());
366 };
367 }
368 if (std::strcmp(name, "BoxCollider2D") == 0) {
369 return [&registry]() -> Candidates {
370 return denseAsIds(registry.entitiesWith<esengine::ecs::BoxCollider2D>());
371 };
372 }
373 if (std::strcmp(name, "BoxCollider3D") == 0) {
374 return [&registry]() -> Candidates {
375 return denseAsIds(registry.entitiesWith<esengine::ecs::BoxCollider3D>());
376 };
377 }
378 if (std::strcmp(name, "Camera") == 0) {
379 return [&registry]() -> Candidates {
380 return denseAsIds(registry.entitiesWith<esengine::ecs::Camera>());
381 };
382 }
383 if (std::strcmp(name, "Canvas") == 0) {
384 return [&registry]() -> Candidates {
385 return denseAsIds(registry.entitiesWith<esengine::ecs::Canvas>());
386 };
387 }
388 if (std::strcmp(name, "CapsuleCollider2D") == 0) {
389 return [&registry]() -> Candidates {
390 return denseAsIds(registry.entitiesWith<esengine::ecs::CapsuleCollider2D>());
391 };
392 }
393 if (std::strcmp(name, "CapsuleCollider3D") == 0) {
394 return [&registry]() -> Candidates {
395 return denseAsIds(registry.entitiesWith<esengine::ecs::CapsuleCollider3D>());
396 };
397 }
398 if (std::strcmp(name, "CharacterController3D") == 0) {
399 return [&registry]() -> Candidates {
400 return denseAsIds(registry.entitiesWith<esengine::ecs::CharacterController3D>());
401 };
402 }
403 if (std::strcmp(name, "Children") == 0) {
404 return [&registry]() -> Candidates {
405 return denseAsIds(registry.entitiesWith<esengine::ecs::Children>());
406 };
407 }
408 if (std::strcmp(name, "CircleCollider2D") == 0) {
409 return [&registry]() -> Candidates {
410 return denseAsIds(registry.entitiesWith<esengine::ecs::CircleCollider2D>());
411 };
412 }
413 if (std::strcmp(name, "ContentRect") == 0) {
414 return [&registry]() -> Candidates {
415 return denseAsIds(registry.entitiesWith<esengine::ecs::ContentRect>());
416 };
417 }
418 if (std::strcmp(name, "ConvexCollider3D") == 0) {
419 return [&registry]() -> Candidates {
420 return denseAsIds(registry.entitiesWith<esengine::ecs::ConvexCollider3D>());
421 };
422 }
423 if (std::strcmp(name, "Draggable") == 0) {
424 return [&registry]() -> Candidates {
425 return denseAsIds(registry.entitiesWith<esengine::ecs::Draggable>());
426 };
427 }
428 if (std::strcmp(name, "DragonBonesAnimation") == 0) {
429 return [&registry]() -> Candidates {
430 return denseAsIds(registry.entitiesWith<esengine::ecs::DragonBonesAnimation>());
431 };
432 }
433 if (std::strcmp(name, "FlexContainer") == 0) {
434 return [&registry]() -> Candidates {
435 return denseAsIds(registry.entitiesWith<esengine::ecs::FlexContainer>());
436 };
437 }
438 if (std::strcmp(name, "GroupOpacity") == 0) {
439 return [&registry]() -> Candidates {
440 return denseAsIds(registry.entitiesWith<esengine::ecs::GroupOpacity>());
441 };
442 }
443 if (std::strcmp(name, "Impostor") == 0) {
444 return [&registry]() -> Candidates {
445 return denseAsIds(registry.entitiesWith<esengine::ecs::Impostor>());
446 };
447 }
448 if (std::strcmp(name, "Interactable") == 0) {
449 return [&registry]() -> Candidates {
450 return denseAsIds(registry.entitiesWith<esengine::ecs::Interactable>());
451 };
452 }
453 if (std::strcmp(name, "LODGroup") == 0) {
454 return [&registry]() -> Candidates {
455 return denseAsIds(registry.entitiesWith<esengine::ecs::LODGroup>());
456 };
457 }
458 if (std::strcmp(name, "Light") == 0) {
459 return [&registry]() -> Candidates {
460 return denseAsIds(registry.entitiesWith<esengine::ecs::Light>());
461 };
462 }
463 if (std::strcmp(name, "LightProbeVolume") == 0) {
464 return [&registry]() -> Candidates {
465 return denseAsIds(registry.entitiesWith<esengine::ecs::LightProbeVolume>());
466 };
467 }
468 if (std::strcmp(name, "MeshCollider3D") == 0) {
469 return [&registry]() -> Candidates {
470 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshCollider3D>());
471 };
472 }
473 if (std::strcmp(name, "MeshInstances") == 0) {
474 return [&registry]() -> Candidates {
475 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshInstances>());
476 };
477 }
478 if (std::strcmp(name, "MeshLightmap") == 0) {
479 return [&registry]() -> Candidates {
480 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshLightmap>());
481 };
482 }
483 if (std::strcmp(name, "MeshMorph") == 0) {
484 return [&registry]() -> Candidates {
485 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshMorph>());
486 };
487 }
488 if (std::strcmp(name, "MeshRenderer") == 0) {
489 return [&registry]() -> Candidates {
490 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshRenderer>());
491 };
492 }
493 if (std::strcmp(name, "MeshSkin") == 0) {
494 return [&registry]() -> Candidates {
495 return denseAsIds(registry.entitiesWith<esengine::ecs::MeshSkin>());
496 };
497 }
498 if (std::strcmp(name, "Occluder") == 0) {
499 return [&registry]() -> Candidates {
500 return denseAsIds(registry.entitiesWith<esengine::ecs::Occluder>());
501 };
502 }
503 if (std::strcmp(name, "Parent") == 0) {
504 return [&registry]() -> Candidates {
505 return denseAsIds(registry.entitiesWith<esengine::ecs::Parent>());
506 };
507 }
508 if (std::strcmp(name, "ParticleCollider") == 0) {
509 return [&registry]() -> Candidates {
510 return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleCollider>());
511 };
512 }
513 if (std::strcmp(name, "ParticleEmitter") == 0) {
514 return [&registry]() -> Candidates {
515 return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleEmitter>());
516 };
517 }
518 if (std::strcmp(name, "ParticleForceField") == 0) {
519 return [&registry]() -> Candidates {
520 return denseAsIds(registry.entitiesWith<esengine::ecs::ParticleForceField>());
521 };
522 }
523 if (std::strcmp(name, "PlanarReflection") == 0) {
524 return [&registry]() -> Candidates {
525 return denseAsIds(registry.entitiesWith<esengine::ecs::PlanarReflection>());
526 };
527 }
528 if (std::strcmp(name, "ReflectionProbe") == 0) {
529 return [&registry]() -> Candidates {
530 return denseAsIds(registry.entitiesWith<esengine::ecs::ReflectionProbe>());
531 };
532 }
533 if (std::strcmp(name, "RigidBody2D") == 0) {
534 return [&registry]() -> Candidates {
535 return denseAsIds(registry.entitiesWith<esengine::ecs::RigidBody2D>());
536 };
537 }
538 if (std::strcmp(name, "RigidBody3D") == 0) {
539 return [&registry]() -> Candidates {
540 return denseAsIds(registry.entitiesWith<esengine::ecs::RigidBody3D>());
541 };
542 }
543 if (std::strcmp(name, "SegmentCollider2D") == 0) {
544 return [&registry]() -> Candidates {
545 return denseAsIds(registry.entitiesWith<esengine::ecs::SegmentCollider2D>());
546 };
547 }
548 if (std::strcmp(name, "ShadowCaster2D") == 0) {
549 return [&registry]() -> Candidates {
550 return denseAsIds(registry.entitiesWith<esengine::ecs::ShadowCaster2D>());
551 };
552 }
553 if (std::strcmp(name, "ShapeRenderer") == 0) {
554 return [&registry]() -> Candidates {
555 return denseAsIds(registry.entitiesWith<esengine::ecs::ShapeRenderer>());
556 };
557 }
558 if (std::strcmp(name, "SortingGroup") == 0) {
559 return [&registry]() -> Candidates {
560 return denseAsIds(registry.entitiesWith<esengine::ecs::SortingGroup>());
561 };
562 }
563 if (std::strcmp(name, "SphereCollider3D") == 0) {
564 return [&registry]() -> Candidates {
565 return denseAsIds(registry.entitiesWith<esengine::ecs::SphereCollider3D>());
566 };
567 }
568 if (std::strcmp(name, "SpineAnimation") == 0) {
569 return [&registry]() -> Candidates {
570 return denseAsIds(registry.entitiesWith<esengine::ecs::SpineAnimation>());
571 };
572 }
573 if (std::strcmp(name, "SpringBone") == 0) {
574 return [&registry]() -> Candidates {
575 return denseAsIds(registry.entitiesWith<esengine::ecs::SpringBone>());
576 };
577 }
578 if (std::strcmp(name, "SpringBoneCollider") == 0) {
579 return [&registry]() -> Candidates {
580 return denseAsIds(registry.entitiesWith<esengine::ecs::SpringBoneCollider>());
581 };
582 }
583 if (std::strcmp(name, "Sprite") == 0) {
584 return [&registry]() -> Candidates {
585 return denseAsIds(registry.entitiesWith<esengine::ecs::Sprite>());
586 };
587 }
588 if (std::strcmp(name, "SpriteMask") == 0) {
589 return [&registry]() -> Candidates {
590 return denseAsIds(registry.entitiesWith<esengine::ecs::SpriteMask>());
591 };
592 }
593 if (std::strcmp(name, "TilemapLayer") == 0) {
594 return [&registry]() -> Candidates {
595 return denseAsIds(registry.entitiesWith<esengine::ecs::TilemapLayer>());
596 };
597 }
598 if (std::strcmp(name, "TrailRenderer") == 0) {
599 return [&registry]() -> Candidates {
600 return denseAsIds(registry.entitiesWith<esengine::ecs::TrailRenderer>());
601 };
602 }
603 if (std::strcmp(name, "Transform") == 0) {
604 return [&registry]() -> Candidates {
605 return denseAsIds(registry.entitiesWith<esengine::ecs::Transform>());
606 };
607 }
608 if (std::strcmp(name, "UIInteraction") == 0) {
609 return [&registry]() -> Candidates {
610 return denseAsIds(registry.entitiesWith<esengine::ecs::UIInteraction>());
611 };
612 }
613 if (std::strcmp(name, "UIMask") == 0) {
614 return [&registry]() -> Candidates {
615 return denseAsIds(registry.entitiesWith<esengine::ecs::UIMask>());
616 };
617 }
618 if (std::strcmp(name, "UINode") == 0) {
619 return [&registry]() -> Candidates {
620 return denseAsIds(registry.entitiesWith<esengine::ecs::UINode>());
621 };
622 }
623 if (std::strcmp(name, "UIScroll") == 0) {
624 return [&registry]() -> Candidates {
625 return denseAsIds(registry.entitiesWith<esengine::ecs::UIScroll>());
626 };
627 }
628 if (std::strcmp(name, "UIVisual") == 0) {
629 return [&registry]() -> Candidates {
630 return denseAsIds(registry.entitiesWith<esengine::ecs::UIVisual>());
631 };
632 }
633 if (std::strcmp(name, "Velocity") == 0) {
634 return [&registry]() -> Candidates {
635 return denseAsIds(registry.entitiesWith<esengine::ecs::Velocity>());
636 };
637 }
638 return {};
639}
640
641bool isEngineComponent(const char* name) {
642 if (std::strcmp(name, "Billboard") == 0) return true;
643 if (std::strcmp(name, "BitmapText") == 0) return true;
644 if (std::strcmp(name, "BoxCollider2D") == 0) return true;
645 if (std::strcmp(name, "BoxCollider3D") == 0) return true;
646 if (std::strcmp(name, "Camera") == 0) return true;
647 if (std::strcmp(name, "Canvas") == 0) return true;
648 if (std::strcmp(name, "CapsuleCollider2D") == 0) return true;
649 if (std::strcmp(name, "CapsuleCollider3D") == 0) return true;
650 if (std::strcmp(name, "CharacterController3D") == 0) return true;
651 if (std::strcmp(name, "Children") == 0) return true;
652 if (std::strcmp(name, "CircleCollider2D") == 0) return true;
653 if (std::strcmp(name, "ContentRect") == 0) return true;
654 if (std::strcmp(name, "ConvexCollider3D") == 0) return true;
655 if (std::strcmp(name, "Draggable") == 0) return true;
656 if (std::strcmp(name, "DragonBonesAnimation") == 0) return true;
657 if (std::strcmp(name, "FlexContainer") == 0) return true;
658 if (std::strcmp(name, "GroupOpacity") == 0) return true;
659 if (std::strcmp(name, "Impostor") == 0) return true;
660 if (std::strcmp(name, "Interactable") == 0) return true;
661 if (std::strcmp(name, "LODGroup") == 0) return true;
662 if (std::strcmp(name, "Light") == 0) return true;
663 if (std::strcmp(name, "LightProbeVolume") == 0) return true;
664 if (std::strcmp(name, "MeshCollider3D") == 0) return true;
665 if (std::strcmp(name, "MeshInstances") == 0) return true;
666 if (std::strcmp(name, "MeshLightmap") == 0) return true;
667 if (std::strcmp(name, "MeshMorph") == 0) return true;
668 if (std::strcmp(name, "MeshRenderer") == 0) return true;
669 if (std::strcmp(name, "MeshSkin") == 0) return true;
670 if (std::strcmp(name, "Occluder") == 0) return true;
671 if (std::strcmp(name, "Parent") == 0) return true;
672 if (std::strcmp(name, "ParticleCollider") == 0) return true;
673 if (std::strcmp(name, "ParticleEmitter") == 0) return true;
674 if (std::strcmp(name, "ParticleForceField") == 0) return true;
675 if (std::strcmp(name, "PlanarReflection") == 0) return true;
676 if (std::strcmp(name, "ReflectionProbe") == 0) return true;
677 if (std::strcmp(name, "RigidBody2D") == 0) return true;
678 if (std::strcmp(name, "RigidBody3D") == 0) return true;
679 if (std::strcmp(name, "SegmentCollider2D") == 0) return true;
680 if (std::strcmp(name, "ShadowCaster2D") == 0) return true;
681 if (std::strcmp(name, "ShapeRenderer") == 0) return true;
682 if (std::strcmp(name, "SortingGroup") == 0) return true;
683 if (std::strcmp(name, "SphereCollider3D") == 0) return true;
684 if (std::strcmp(name, "SpineAnimation") == 0) return true;
685 if (std::strcmp(name, "SpringBone") == 0) return true;
686 if (std::strcmp(name, "SpringBoneCollider") == 0) return true;
687 if (std::strcmp(name, "Sprite") == 0) return true;
688 if (std::strcmp(name, "SpriteMask") == 0) return true;
689 if (std::strcmp(name, "TilemapLayer") == 0) return true;
690 if (std::strcmp(name, "TrailRenderer") == 0) return true;
691 if (std::strcmp(name, "Transform") == 0) return true;
692 if (std::strcmp(name, "UIInteraction") == 0) return true;
693 if (std::strcmp(name, "UIMask") == 0) return true;
694 if (std::strcmp(name, "UINode") == 0) return true;
695 if (std::strcmp(name, "UIScroll") == 0) return true;
696 if (std::strcmp(name, "UIVisual") == 0) return true;
697 if (std::strcmp(name, "Velocity") == 0) return true;
698 return false;
699}
700
701} // namespace esengine::aot
A mesh that turns to whoever looks at it.
Camera component for rendering viewpoints.
Canvas component for 2D game resolution management.
The shapes that give a flat body its extent.
The rectangle a piece of world content occupies: a size, and the point of it the entity's transform s...
Pointer-drag configuration.
A DragonBones armature on an entity.
Entity utilities for the ECS system.
Hierarchy components for parent-child relationships.
A picture of a mesh, taken from many directions, drawn in its place once it is small.
The cheaper geometry that may stand in for a MeshRenderer once it is small.
2D light source component for the Lit material domain.
Arbitrary-geometry 2D mesh renderable (deformed sprites, polygons, water surfaces,...
A box sight does not pass through, so what stands behind it is not drawn. ShadowCaster2D answers wher...
A shape particles bounce off without any physics: a signed distance a compute kernel can answer per p...
A scene-placed force zone that pushes every world-space particle near it.
What a shiny surface standing HERE reflects, when the sky is not it. LightProbeVolume answers the sam...
Central ECS registry for entity and component management.
A body the flat world simulates.
A body the 3D world simulates, and the shapes that give it extent.
Marks an entity as a 2D shadow occluder for the Lit lighting path.
Makes a subtree sort as ONE unit against the rest of the scene.
Spine skeletal animation component.
Secondary motion for a chain of bones: hair, tails, cords, cloth edges.
Turns this entity's Sprite into a stencil the sprites drawn after it can be cut by.
2D sprite rendering component
Tilemap layer ECS component (editor-facing metadata).
World-space motion trail renderable (sword swipes, projectile/dash streaks, ribbon effects).
Unified Transform component with local and world-space data.
Velocity component for physics simulation.
Central container for all entities and components.
Definition Registry.hpp:73
std::span< const Entity > entitiesWith() const
The entities that carry T, densely.
Definition Registry.hpp:931
T * tryGet(Entity entity)
Tries to get a component from an entity.
Definition Registry.hpp:670
ComponentAt engineComponentAt(ecs::Registry &registry, const char *name)
CandidatesOf engineComponentCandidates(ecs::Registry &registry, const char *name)
std::function< Candidates()> CandidatesOf
Definition AotHost.hpp:61
bool isEngineComponent(const char *name)
std::optional< std::span< const std::uint32_t > > Candidates
Definition AotHost.hpp:58
std::function< void *(std::uint32_t)> ComponentAt
Definition AotHost.hpp:49
static constexpr Entity fromRaw(u32 v)
Reconstructs an Entity from a raw packed value.
Definition Types.hpp:162
Turns the MeshRenderer beside it to face each view that draws it.
Definition Billboard.hpp:37
An axis-aligned box, sized in world units around the entity's origin.
Camera component for rendering viewpoints.
Definition Camera.hpp:70
Canvas component for 2D game resolution management.
Definition Canvas.hpp:71
An upright capsule — the shape a character is.
A kinematic mover for a 3D player or NPC.
Children list component.
Definition Hierarchy.hpp:66
The rectangle of this entity's content, in its own units.
The convex hull of imported geometry — a shape a solver can push.
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.
Stands a card in for the MeshRenderer beside it once the object covers less than screenSize of the vi...
Definition Impostor.hpp:32
Stand-in geometry chosen by how much of the screen the object covers.
Definition LODGroup.hpp:30
A box of baked irradiance: the light for what a bake cannot hold still.
Definition Light.hpp:306
A 2D light contributing to Lit-shaded materials.
Definition Light.hpp:54
Imported geometry, used as it is, for a level to collide against.
Many placements of the one mesh a MeshRenderer draws, as ONE renderable.
Where a MeshRenderer's BAKED light comes from: the atlas, and the rectangle of it this object occupie...
What SHAPE a MeshRenderer is in: how far it is blended towards each of the shapes its mesh carries.
What deforms a MeshRenderer: the entities its Joints channel indexes.
Declares a solid box a camera cannot see through.
Definition Occluder.hpp:32
Parent reference component.
Definition Hierarchy.hpp:46
A box inside which reflections come from a bake rather than from the sky.
A body in the 3D world.
A 2D shadow occluder. The box is centred on the entity's world position and turns with it; its size i...
One sorting identity for an entity and everything under it.
Spine skeletal animation component.
A sphere or capsule a spring chain is kept out of, placed by its entity's transform.
A stencil cut from this entity's own Sprite.
Unified transform component.
Definition Transform.hpp:45
UINode — the CSS box-model layout input (the CSS/Flex primary layout model).
Definition UINode.hpp:79
UIVisual — the single UI visual component, merging the former low-level UIRenderer (what the renderer...
Definition UIVisual.hpp:84
Velocity component for simple kinematic motion.
Definition Velocity.hpp:41