Module simulation_assets

Module simulation_assets 

Source
Expand description

Simulation assets service for downloading and caching simulation files from GitHub releases

This service provides:

  • Downloading simulation assets (Godot project, models, environments) from GitHub releases
  • Caching assets to ~/.mecha10/simulation/
  • Version management and updates

§Design

  • Assets are downloaded from GitHub releases as a tarball
  • Assets are extracted to ~/.mecha10/simulation/{version}/
  • A symlink ~/.mecha10/simulation/current points to the active version

§Usage

use mecha10_cli::services::SimulationAssetsService;

let service = SimulationAssetsService::new();

// Ensure assets are available (downloads if needed)
let path = service.ensure_assets().await?;

// Get Godot project path
let godot_path = service.godot_project_path()?;

Structs§

SimulationAssetsService
Service for managing simulation assets