use crate::error::Error;
use crate::io::*;
use std::io::{Read, Write};
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum SaveType {
World,
Subassembly,
}
#[derive(Debug)]
pub struct ModInfo {
pub mod_id: String,
pub mod_version: [i32; 4],
}
#[derive(Debug)]
pub struct ComponentType {
pub numeric_id: u16,
pub text_id: String,
}
#[derive(Debug)]
pub struct Input {
pub circuit_state_id: i32,
}
#[derive(Debug)]
pub struct Output {
pub circuit_state_id: i32,
}
#[derive(Debug)]
pub struct Component {
pub address: u32,
pub parent: u32,
pub type_id: u16,
pub position: [f32; 3],
pub rotation: [f32; 4],
pub inputs: Vec,
pub outputs: Vec