Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-04-26 16:33:58 -07:00
parent e33022e93b
commit f580cb2c53
3 changed files with 0 additions and 51 deletions

View File

@@ -1,6 +1,5 @@
#![allow(non_snake_case)]
// use std::collections::BTreeMap;
use std::collections::BTreeMap;
use itertools::Itertools;
@@ -75,39 +74,3 @@ impl<'a> FromIterator<&'a ic10emu::device::Slot> for Slots {
}
include!(concat!(env!("OUT_DIR"), "/ts_types.rs"));
// #[serde_as]
// #[derive(Tsify, Serialize, Deserialize)]
// #[tsify(into_wasm_abi, from_wasm_abi)]
// pub struct DeviceLogicField {
// field_type: FieldType,
// value: f64,
// }
//
// #[serde_as]
// #[derive(Tsify, Serialize, Deserialize)]
// #[tsify(into_wasm_abi, from_wasm_abi)]
// pub struct DeviceSlot {
// typ: SlotType,
// #[serde_as(as = "Vec<(_, _)>")]
// fields: BTreeMap<SlotLogicType, DeviceLogicField>,
// }
//
//
// #[serde_as]
// #[derive(Tsify, Serialize, Deserialize)]
// #[tsify(into_wasm_abi, from_wasm_abi)]
// pub struct DeviceState{
// name: Option<String>,
// name_hash: Option<i32>,
// prefab_name: Option<String>,
// #[serde_as(as = "Vec<(_, _)>")]
// fields: BTreeMap<LogicType, DeviceLogicField>,
// slots: Vec<DeviceSlot>,
// #[serde_as(as = "Vec<(_, _)>")]
// reagents: BTreeMap<ReagentMode, Vec<(i32, f64)>>,
// connections: Vec<Connection>,
// ic: Option<u32>,
// }
// serde_with::DisplayFromStr

View File

@@ -7,20 +7,6 @@ export interface LogicField {
export type LogicFields = Map<LogicType, LogicField>;
export type SlotLogicFields = Map<SlotLogicType, LogicField>;
// export interface SlotOccupant {
// readonly id: number;
// readonly prefab_hash: number;
// readonly quantity: number;
// readonly max_quantity: number;
// readonly damage: number;
// readonly fields: SlotLogicFields;
// }
// export interface Slot {
// readonly typ: SlotType;
// readonly occupant: SlotOccupant | undefined;
// readonly fields: SlotLogicFields;
// }
export type Reagents = Map<string, Map<number, number>>;
export interface ConnectionCableNetwork {