1 line
No EOL
20 KiB
JSON
1 line
No EOL
20 KiB
JSON
{"nodes": [{"id": "game_scripts_enemy_system", "label": "EnemySystem", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L1", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_enemy_removed", "label": "enemy_removed (signal)", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L37", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_setup", "label": "setup()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L123", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_load_types", "label": "_load_types()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L150", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_clear", "label": "clear()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L194", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_spawn", "label": "spawn()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L213", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Pool never grows: a spawn is skipped (and counted) when the slot pool is full or a ground enemy has no free EnemyCharacters character."}, {"id": "game_scripts_enemy_system_handle_of", "label": "handle_of()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L258", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_resolve_handle", "label": "resolve_handle()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L264", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Handles pack a stable id with a generation counter so a handle goes stale when its slot is reused."}, {"id": "game_scripts_enemy_system_visual_position", "label": "visual_position()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L282", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_apply_hit", "label": "apply_hit()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L288", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_apply_hit_handle", "label": "apply_hit_handle()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L303", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_queue_removal", "label": "queue_removal()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L309", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_remove_all", "label": "remove_all()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L321", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_step", "label": "step()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L334", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Behavior writes desire/pace; steering adds same-kind separation; ground enemies yield to both scarecrows and slide along the FarmNavigation walkable grid, flyers ignore collision and ease to altitude."}, {"id": "game_scripts_enemy_system_evaluate_attacks", "label": "evaluate_attacks()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L465", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_sweep_hit", "label": "sweep_hit()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L498", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Prototype's exact relative-motion swept circle test against per-type hit radii at combat height (2D, flyers included)."}, {"id": "game_scripts_enemy_system_commit_removals", "label": "commit_removals()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L546", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Removals are deferred to end of tick so handles stay valid when enemy_removed is emitted; then swap-removal keeps slots dense."}, {"id": "game_scripts_enemy_system_commit_render", "label": "commit_render()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L562", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_release_slot", "label": "_release_slot()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L582", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_enemy_system_build_bird_mesh", "label": "build_bird_mesh()", "file_type": "code", "source_file": "game/scripts/enemy_system.gd", "source_location": "L606", "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_enemy_removed", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_setup", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_load_types", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_clear", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_spawn", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_handle_of", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_resolve_handle", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_visual_position", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_apply_hit", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_apply_hit_handle", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_queue_removal", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_remove_all", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_step", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_evaluate_attacks", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_sweep_hit", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_commit_removals", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_commit_render", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_release_slot", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_system_build_bird_mesh", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_game_config", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_farm_navigation", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_thief_behavior", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_structure_system", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_enemy_characters", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_loot_system", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "game_scripts_scarecrow", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "prototype_scripts_spatial_grid", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "prototype_scripts_horde_renderer", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system", "target": "prototype_scripts_asset_catalog", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_setup", "target": "game_scripts_enemy_system_load_types", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_setup", "target": "game_scripts_enemy_system_clear", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_clear", "target": "game_scripts_enemy_characters_clear", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_spawn", "target": "game_scripts_enemy_characters_acquire", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_spawn", "target": "game_scripts_enemy_system_handle_of", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_apply_hit_handle", "target": "game_scripts_enemy_system_resolve_handle", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_apply_hit_handle", "target": "game_scripts_enemy_system_apply_hit", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_apply_hit", "target": "game_scripts_enemy_characters_hit", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_apply_hit", "target": "game_scripts_enemy_system_queue_removal", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_apply_hit", "target": "game_scripts_thief_behavior_on_hit", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_remove_all", "target": "game_scripts_enemy_system_queue_removal", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_remove_all", "target": "game_scripts_enemy_system_commit_removals", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_step", "target": "game_scripts_thief_behavior_update", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_step", "target": "game_scripts_thief_behavior_altitude_for", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_step", "target": "game_scripts_farm_navigation_is_walkable", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_step", "target": "game_scripts_farm_navigation_cell_of", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_evaluate_attacks", "target": "game_scripts_thief_behavior_can_attack", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_evaluate_attacks", "target": "game_scripts_farm_navigation_line_clear", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_evaluate_attacks", "target": "game_scripts_scarecrow_try_damage", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_commit_removals", "target": "game_scripts_enemy_system_handle_of", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_commit_removals", "target": "game_scripts_enemy_characters_release", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_commit_removals", "target": "game_scripts_enemy_system_release_slot", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_commit_removals", "target": "game_scripts_enemy_system_enemy_removed", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_enemy_system_load_types", "target": "game_scripts_game_config", "relation": "shares_data_with", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/scripts/enemy_system.gd", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "enemy_damage_sources", "label": "Weapons damaging enemies through EnemySystem.apply_hit", "nodes": ["game_scripts_scarecrow_combat_stab", "game_scripts_farm_projectiles_resolve_segment", "game_scripts_pumpkin_bombs_burst", "game_scripts_enemy_system_apply_hit"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/enemy_system.gd"}, {"id": "enemy_tick_pipeline", "label": "Per-tick enemy simulation pipeline (behavior, motion, melee, deferred removal, render)", "nodes": ["game_scripts_enemy_system_step", "game_scripts_thief_behavior_update", "game_scripts_enemy_system_evaluate_attacks", "game_scripts_enemy_system_commit_removals", "game_scripts_enemy_system_commit_render"], "relation": "participate_in", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "game/scripts/enemy_system.gd"}]} |