use std::collections::HashMap; use crate::prelude::*; #[derive(Deserialize, Asset, TypePath, Component, Serialize, Clone, Debug)] pub struct ShipEditorConfig { pub general: GeneralShipEditor, pub part_list: HashMap, } #[derive(Deserialize, TypePath, Component, Serialize, Clone, Debug)] pub struct GeneralShipEditor { pub player_part: String, } #[derive(Deserialize, TypePath, Component, Serialize, Clone, Debug)] pub struct PartIcon { pub order: usize, }