Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel Powers <[email protected]>
  • Loading branch information
Ryex committed Apr 28, 2024
1 parent e33022e commit f580cb2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 51 deletions.
File renamed without changes.
37 changes: 0 additions & 37 deletions ic10emu_wasm/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(non_snake_case)]

// use std::collections::BTreeMap;
use std::collections::BTreeMap;

use itertools::Itertools;
Expand Down Expand Up @@ -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
14 changes: 0 additions & 14 deletions ic10emu_wasm/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f580cb2

Please sign in to comment.