~starkingdoms/starkingdoms

ref: daf8de5d783872d9f6af89febbe1a5117da3ba5c starkingdoms/crates/unified/src/shared/config/ship_editor.rs -rw-r--r-- 492 bytes
daf8de5dghostly_zsh ship editor feat: spawn hearty & eventually other parts 15 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,
}