diff --git a/.github/workflows/devlop-deploy-netlify.yml b/.github/workflows/develop-deploy-netlify.yml similarity index 100% rename from .github/workflows/devlop-deploy-netlify.yml rename to .github/workflows/develop-deploy-netlify.yml diff --git a/ic10emu_wasm/src/types.rs b/ic10emu_wasm/src/types.rs index 5bb3bb8..20a406f 100644 --- a/ic10emu_wasm/src/types.rs +++ b/ic10emu_wasm/src/types.rs @@ -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, -// } -// -// -// #[serde_as] -// #[derive(Tsify, Serialize, Deserialize)] -// #[tsify(into_wasm_abi, from_wasm_abi)] -// pub struct DeviceState{ -// name: Option, -// name_hash: Option, -// prefab_name: Option, -// #[serde_as(as = "Vec<(_, _)>")] -// fields: BTreeMap, -// slots: Vec, -// #[serde_as(as = "Vec<(_, _)>")] -// reagents: BTreeMap>, -// connections: Vec, -// ic: Option, -// } - -// serde_with::DisplayFromStr diff --git a/ic10emu_wasm/src/types.ts b/ic10emu_wasm/src/types.ts index b2e0a08..5455bb9 100644 --- a/ic10emu_wasm/src/types.ts +++ b/ic10emu_wasm/src/types.ts @@ -7,20 +7,6 @@ export interface LogicField { export type LogicFields = Map; export type SlotLogicFields = Map; -// 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>; export interface ConnectionCableNetwork {