1 line
No EOL
20 KiB
JSON
1 line
No EOL
20 KiB
JSON
{"nodes": [{"id": "game_scripts_campaign_controller", "label": "CampaignController", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L1", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Phases run on game-time timers so Engine.time_scale speeds the whole cycle up; gameplay systems run before tick() each physics tick."}, {"id": "game_scripts_campaign_controller_phase_changed", "label": "phase_changed (signal)", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L20", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_campaign_ended", "label": "campaign_ended (signal)", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L21", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_night_ending", "label": "night_ending (signal)", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L24", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_new_campaign", "label": "new_campaign()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L57", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_tick", "label": "tick()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L63", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_begin_day", "label": "begin_day()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L74", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_start_night_early", "label": "start_night_early()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L85", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_can_start_night_early", "label": "can_start_night_early()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L95", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_advance_phase", "label": "advance_phase()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L100", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_load_state", "label": "load_state()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L106", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_morning_snapshot", "label": "morning_snapshot()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L113", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_retry_night", "label": "retry_night()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L118", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_is_daytime", "label": "is_daytime()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L133", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_is_over", "label": "is_over()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L137", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_is_timed", "label": "is_timed()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L141", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_phase_length", "label": "phase_length()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L146", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_check_outcome", "label": "check_outcome()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L156", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Pure function of farm state; failures (scarecrow destroyed, then farm stripped) are checked before completion so a scarecrow destroyed on the tick the final dawn ends is still a Game Over. In co-op both scarecrows must be down."}, {"id": "game_scripts_campaign_controller_resolve", "label": "_resolve()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L166", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_campaign_controller_enter", "label": "_enter()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L188", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "MORNING snapshots the state (retry point, D9) and autosaves via SaveGame; in co-op a fallen scarecrow returns at half health."}, {"id": "game_scripts_campaign_controller_next_phase", "label": "_next_phase()", "file_type": "code", "source_file": "game/scripts/campaign_controller.gd", "source_location": "L211", "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_phase_changed", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L20", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_campaign_ended", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L21", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_night_ending", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L24", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_new_campaign", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L57", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_tick", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L63", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_begin_day", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L74", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_start_night_early", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L85", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_can_start_night_early", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L95", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_advance_phase", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L100", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_load_state", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L106", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_morning_snapshot", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L113", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_retry_night", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L118", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_is_daytime", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L133", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_is_over", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L137", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_is_timed", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L141", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_phase_length", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L146", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_check_outcome", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L156", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_resolve", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L166", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_enter", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L188", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_campaign_controller_next_phase", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": "L211", "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_game_config", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_farm_state", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller", "target": "game_scripts_save_game", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_tick", "target": "game_scripts_campaign_controller_is_over", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_tick", "target": "game_scripts_campaign_controller_is_timed", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_tick", "target": "game_scripts_campaign_controller_resolve", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_begin_day", "target": "game_scripts_campaign_controller_resolve", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_start_night_early", "target": "game_scripts_campaign_controller_can_start_night_early", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_start_night_early", "target": "game_scripts_campaign_controller_enter", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_advance_phase", "target": "game_scripts_campaign_controller_is_over", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_advance_phase", "target": "game_scripts_campaign_controller_resolve", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_new_campaign", "target": "game_scripts_campaign_controller_enter", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_load_state", "target": "game_scripts_campaign_controller_enter", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_retry_night", "target": "game_scripts_campaign_controller_enter", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_is_timed", "target": "game_scripts_campaign_controller_phase_length", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_campaign_controller_check_outcome", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_campaign_controller_enter", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_campaign_controller_next_phase", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_enter", "target": "game_scripts_campaign_controller_phase_length", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_campaign_controller_night_ending", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_campaign_controller_campaign_ended", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_enter", "target": "game_scripts_campaign_controller_phase_changed", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_resolve", "target": "game_scripts_save_game", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_enter", "target": "game_scripts_save_game", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_new_campaign", "target": "game_scripts_farm_state", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_retry_night", "target": "game_scripts_farm_state", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_campaign_controller_check_outcome", "target": "game_scripts_farm_state", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "campaign_phase_changed_listeners", "label": "CampaignController.phase_changed listeners", "nodes": ["game_scripts_campaign_controller_phase_changed", "game_scripts_farmers_return_setup", "game_scripts_tutorial_setup", "game_scripts_farm_audio_setup", "game_scripts_end_panel_setup", "game_scripts_review_panel_setup", "game_scripts_phase_hud_setup"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/campaign_controller.gd"}, {"id": "coop_partner_host_forwarding", "label": "Co-op partner actions forwarded to the host via Callables", "nodes": ["game_scripts_campaign_controller_begin_day", "game_scripts_campaign_controller_retry_night", "game_scripts_campaign_controller_start_night_early", "game_scripts_upgrade_panel_buy", "game_scripts_farm_audio_play", "game_scripts_farm_audio_play_remote"], "relation": "implement", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "game/scripts/campaign_controller.gd"}]} |