Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 4aa069c

Browse files
committed
add comments with proposed code and discussion links on the unexpected it.pair() prefab matching behaviour
1 parent 695b459 commit 4aa069c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Game/cpp/systems/enemy_death.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ inline FlecsRegistry register_enemy_death_system([](flecs::world& world) {
4040

4141
flecs::entity entity = it.entity(static_cast<std::int32_t>(entity_index));
4242
godot::Dictionary signal_data;
43-
const flecs::entity prefab_entity = entity.target(flecs::IsA);
43+
44+
const flecs::entity prefab_entity = entity.target(flecs::IsA);
45+
// https://discord.com/channels/633826290415435777/1455553733978099763/1455641967605059854
46+
// https://discord.com/channels/633826290415435777/1455553733978099763/1456480409255936118
47+
// const flecs::entity prefab_entity = it.pair(7).second();
48+
4449
signal_data["enemy_type"] = godot::String(prefab_entity.name().c_str());
4550
signal_data["enemy_position"] = positions[entity_index].value;
4651
emit_godot_signal(it.world(), entity, "enemy_died", signal_data);

0 commit comments

Comments
 (0)