diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-18 15:42:11 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-18 15:42:11 +0200 |
commit | 5f883c80e7fc63c97910d003c44aea814ab8a5d6 (patch) | |
tree | b73a8c8f78db103671128e686136f08aa276923a /server/src/bin/graph.rs | |
parent | efc29c03f7be043ae8d037a93efce8cfa7c384cc (diff) | |
download | hurrycurry-5f883c80e7fc63c97910d003c44aea814ab8a5d6.tar hurrycurry-5f883c80e7fc63c97910d003c44aea814ab8a5d6.tar.bz2 hurrycurry-5f883c80e7fc63c97910d003c44aea814ab8a5d6.tar.zst |
reimplement customers as entity
Diffstat (limited to 'server/src/bin/graph.rs')
-rw-r--r-- | server/src/bin/graph.rs | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs index 49ad4716..58cc1763 100644 --- a/server/src/bin/graph.rs +++ b/server/src/bin/graph.rs @@ -17,10 +17,7 @@ */ use anyhow::{anyhow, Result}; use hurrycurry_protocol::{ItemIndex, RecipeIndex}; -use hurrycurry_server::{ - data::{DataIndex, Demand}, - interaction::Recipe, -}; +use hurrycurry_server::{data::DataIndex, interaction::Recipe}; #[tokio::main] async fn main() -> Result<()> { @@ -60,25 +57,26 @@ async fn main() -> Result<()> { } } - for ( - di, - Demand { - duration, - from: ItemIndex(from), - to, - points, - }, - ) in data.demands.iter().enumerate() - { - let color = "#c4422b"; - println!( - "d{di} [label=\"Demand\\ntakes {duration}s\\n{points} points\" shape=box color={color:?} fillcolor={color:?} style=filled]", - ); - println!("i{from} -> d{di}"); - if let Some(ItemIndex(to)) = to { - println!("d{di} -> i{to}"); - } - } + // TODO + // for ( + // di, + // Demand { + // duration, + // from: ItemIndex(from), + // to, + // points, + // }, + // ) in data.demands.iter().enumerate() + // { + // let color = "#c4422b"; + // println!( + // "d{di} [label=\"Demand\\ntakes {duration}s\\n{points} points\" shape=box color={color:?} fillcolor={color:?} style=filled]", + // ); + // println!("i{from} -> d{di}"); + // if let Some(ItemIndex(to)) = to { + // println!("d{di} -> i{to}"); + // } + // } println!("}}"); Ok(()) |