From c7d53658407f27927a3ad1fb76cca709fd9d7abc Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 16 Nov 2026 21:11:08 +0100 Subject: refactor(engine-ecs): remove vizoxide feature since vizoxide crate is broken --- engine-ecs/src/lib.rs | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'engine-ecs/src/lib.rs') diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs index f9e8143..7965bcd 100644 --- a/engine-ecs/src/lib.rs +++ b/engine-ecs/src/lib.rs @@ -410,53 +410,6 @@ impl World while let StepResult::Continue = self.step() {} } - #[cfg(feature = "vizoxide")] - pub fn create_vizoxide_archetype_graph( - &self, - name: impl AsRef, - ) -> Result - { - use std::borrow::Cow; - - use crate::component::storage::{ - VizoxideArchetypeGraphEdgeKind, - VizoxideArchetypeGraphParams, - }; - - self.data.component_storage.create_vizoxide_archetype_graph( - name, - VizoxideArchetypeGraphParams { - create_node_name: |archetype, _| { - Cow::Owned(format!( - "[{}]", - archetype - .component_ids_sorted() - .into_iter() - .map(|comp_id| comp_id.to_string()) - .collect::>() - .join(", ") - )) - }, - create_node_cb: |_archetype, archetype_metadata, node_builder| { - if archetype_metadata.is_imaginary { - return node_builder.attribute("shape", "ellipse"); - } - - node_builder.attribute("shape", "box") - }, - create_edge_cb: |_, _, edge_kind, edge_builder| { - edge_builder.attribute( - "color", - match edge_kind { - VizoxideArchetypeGraphEdgeKind::Add => "green", - VizoxideArchetypeGraphEdgeKind::Remove => "red", - }, - ) - }, - }, - ) - } - #[tracing::instrument(skip_all)] fn create_ent( &mut self, -- cgit v1.2.3-18-g5258