~starkingdoms/starkingdoms

ref: f85bb4de01556b03b4b711345acb2bcf3c370502 starkingdoms/crates/unified/src/shared/config/ship_editor.rs -rw-r--r-- 492 bytes
f85bb4deghostly_zsh ship editor fix: thruster attachment and connected part sprite 7 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,
}