~starkingdoms/starkingdoms

ref: 94336e646a19dd15e9b88289757a2057676450a5 starkingdoms/crates/unified/src/shared/config/ship_editor.rs -rw-r--r-- 492 bytes
94336e64ghostly_zsh ship editor feat: attachment 21 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,
}