1 line
No EOL
4.3 KiB
JSON
1 line
No EOL
4.3 KiB
JSON
{"nodes": [{"id": "game_scripts_save_game", "label": "SaveGame", "file_type": "code", "source_file": "game/scripts/save_game.gd", "source_location": "L1", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Saves the latest morning's FarmState as JSON at user://savegame.json; reading never crashes or loads something broken (missing, corrupt, non-morning, newer-version saves are reported via Loaded.status), and older saves are migrated when possible."}, {"id": "game_scripts_save_game_loaded", "label": "Loaded", "file_type": "code", "source_file": "game/scripts/save_game.gd", "source_location": "L20", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_save_game_write", "label": "write()", "file_type": "code", "source_file": "game/scripts/save_game.gd", "source_location": "L32", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Atomic write: to path.tmp then renamed over the save."}, {"id": "game_scripts_save_game_read", "label": "read()", "file_type": "code", "source_file": "game/scripts/save_game.gd", "source_location": "L44", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_save_game_migrate", "label": "migrate()", "file_type": "code", "source_file": "game/scripts/save_game.gd", "source_location": "L73", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "One version at a time: v2->v3 fills new night_log keys; v3->v4 adds co-op fields (coop, partner_max_hp, partner_hp). Returns {} when there's no way forward."}], "edges": [{"source": "game_scripts_save_game", "target": "game_scripts_farm_state", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game", "target": "game_scripts_campaign_controller", "relation": "imports_from", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game", "target": "game_scripts_save_game_loaded", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game", "target": "game_scripts_save_game_write", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game", "target": "game_scripts_save_game_read", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game", "target": "game_scripts_save_game_migrate", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game_read", "target": "game_scripts_save_game_migrate", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game_read", "target": "game_scripts_save_game_loaded", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game_write", "target": "game_scripts_save_game_read", "relation": "shares_data_with", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game_migrate", "target": "game_scripts_coop_session_ensure_coop", "relation": "shares_data_with", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_save_game_read", "target": "game_scripts_game_settings_load_from", "relation": "semantically_similar_to", "confidence": "INFERRED", "confidence_score": 0.75, "source_file": "game/scripts/save_game.gd", "source_location": null, "weight": 1.0}], "hyperedges": []} |