From 11a9bc95d46652ae9e37962ec062d576846b5c98 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Wed, 15 Jan 2025 20:31:21 -0500 Subject: [PATCH] remove unused --- ewext/noita_api/src/lib.rs | 6 +++--- ewext/noita_api_macro/src/lib.rs | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ewext/noita_api/src/lib.rs b/ewext/noita_api/src/lib.rs index 572ba28e..4f4b718a 100644 --- a/ewext/noita_api/src/lib.rs +++ b/ewext/noita_api/src/lib.rs @@ -36,7 +36,7 @@ impl EntityID { pub fn is_alive(self) -> bool { raw::entity_get_is_alive(self).unwrap_or(false) } - + pub fn name(self) -> eyre::Result { raw::entity_get_name(self).map(|s| s.to_string()) } @@ -382,7 +382,7 @@ impl ComponentID { self, object, key, value)?; Ok(()) } - + pub fn stain_effects(self) -> eyre::Result> { raw::component_get_value(self, "stain_effects") } @@ -460,7 +460,7 @@ pub mod raw { Ok(()) } - + pub fn physics_body_id_get_transform(body: PhysicsBodyID) -> eyre::Result> { let lua = LuaState::current()?; lua.get_global(c"PhysicsBodyIDGetTransform"); diff --git a/ewext/noita_api_macro/src/lib.rs b/ewext/noita_api_macro/src/lib.rs index 98ab15e0..164e14a4 100644 --- a/ewext/noita_api_macro/src/lib.rs +++ b/ewext/noita_api_macro/src/lib.rs @@ -21,8 +21,6 @@ enum Typ { StdString, #[serde(rename = "vec2")] Vec2, - #[serde(rename = "vec_float")] - VectorFloat, EntityID, #[serde(rename = "int64")] Int64, @@ -42,7 +40,6 @@ impl Typ { Typ::Bool => quote!(bool), Typ::StdString => quote!(Cow<'_, str>), Typ::Vec2 => quote! {(f32, f32)}, - Typ::VectorFloat => quote! {Vec}, Typ::EntityID => quote! { Option }, Typ::Int64 => quote! { i64 }, Typ::GameEffectEnum => quote! { GameEffectEnum },