kitgit

tirbofish/dropbear · diff

f4117ce · Thribhu K

wip: made a way more neater component registry that actually doesnt suck ass (so far). i cbb to do the rest tho.

Unverified

diff --git a/Cargo.toml b/Cargo.toml
index cc56cb1..1e5e384 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -86,6 +86,7 @@ puffin = "0.19"
 bitflags = "2.10"
 features = "0.10"
 puffin_http = "0.16"
+dyn-clone = "1.0"
 
 [workspace.dependencies.image]
 version = "0.24"
diff --git a/crates/dropbear-engine/Cargo.toml b/crates/dropbear-engine/Cargo.toml
index c59f954..d3b0e2d 100644
--- a/crates/dropbear-engine/Cargo.toml
+++ b/crates/dropbear-engine/Cargo.toml
@@ -10,7 +10,6 @@ readme.workspace = true
 
 [dependencies]
 dropbear_future-queue = { path = "../dropbear_future-queue" }
-dropbear-traits = { path = "../dropbear-traits" }
 dropbear-macro = { path = "../dropbear-macro" }
 slank = { path = "../slank", features = ["download-slang", "use-wgpu"] }
 
diff --git a/crates/dropbear-engine/src/animation.rs b/crates/dropbear-engine/src/animation.rs
index 0a99650..2177c1f 100644
--- a/crates/dropbear-engine/src/animation.rs
+++ b/crates/dropbear-engine/src/animation.rs
@@ -1,14 +1,9 @@
-use dropbear_traits::{Component, ComponentDescriptor, ComponentInitContext, ComponentInitFuture, ComponentUpdateContext, InsertBundle, SerializableComponent};
 use std::collections::HashMap;
 use std::sync::Arc;
-use egui::{CollapsingHeader, Ui};
 use glam::Mat4;
 use wgpu::util::DeviceExt;
-use crate::asset::ASSET_REGISTRY;
-use crate::entity::MeshRenderer;
 use crate::graphics::SharedGraphicsContext;
 use crate::model::{AnimationInterpolation, ChannelValues, Model, NodeTransform};
-use std::any::Any;
 
 #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
 pub struct AnimationComponent {
@@ -34,72 +29,6 @@ pub struct AnimationComponent {
     pub bind_group: Option<wgpu::BindGroup>,
 }
 
-impl Component for AnimationComponent {
-    type Serialized = AnimationComponent;
-

Large diffs are not rendered by default. Showing the first 50 of 3899 lines. Show full diff