~starkingdoms/starkingdoms

ref: 1f4fec66a1e4c2148cc8ef59bf7adfb1cb77e3df starkingdoms/crates/unified/src/shared/config/ship_editor.rs -rw-r--r-- 492 bytes
1f4fec66ghostly_zsh ship editor feat: detaching works ish 6 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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<String, PartIcon>,
}

#[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,
}