|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Utilities for cloning/duplicating ECS entities and their associated components. More...
Functions | |
| Entity | clone (Registry ®istry, VulkanRenderer &renderer, Entity source) |
| Creates a duplicate of an existing entity, copying its components. | |
Utilities for cloning/duplicating ECS entities and their associated components.
Utility functions for duplicating entities and their components.
| Entity EntityCloner::clone | ( | Registry & | registry, |
| VulkanRenderer & | renderer, | ||
| Entity | source ) |
Creates a duplicate of an existing entity, copying its components.
Clones a source entity and offsets its position slightly.
| registry | Reference to the ECS Registry. |
| renderer | Reference to the Vulkan Renderer. |
| source | The source entity to clone. |
| registry | ECS registry reference. |
| renderer | Vulkan renderer. |
| source | The target entity to clone. |