diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-16 21:11:08 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-16 21:11:08 +0100 |
| commit | c7d53658407f27927a3ad1fb76cca709fd9d7abc (patch) | |
| tree | 2142b352e4fa88772b9a220d556205226e1e403c /engine-ecs/src/lib.rs | |
| parent | 8dd513d6ffa0c484da7e1a023d8fba962c5d209e (diff) | |
Diffstat (limited to 'engine-ecs/src/lib.rs')
| -rw-r--r-- | engine-ecs/src/lib.rs | 47 |
1 files changed, 0 insertions, 47 deletions
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<str>, - ) -> Result<vizoxide::Graph, vizoxide::GraphvizError> - { - 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::<Vec<_>>() - .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, |
