aboutsummaryrefslogtreecommitdiff
path: root/server/tools/src/graph.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-03-01 21:55:16 +0100
committermetamuffin <metamuffin@disroot.org>2026-03-01 21:55:16 +0100
commit74ffa47147d2bb989057b4513075975c44c2bc42 (patch)
tree0a2242b25fefcf62f94ac6b712c9e937e3b8e35c /server/tools/src/graph.rs
parentd6acbd76a81bb97c1ff74a66a2af9b00713ca6d0 (diff)
downloadhurrycurry-74ffa47147d2bb989057b4513075975c44c2bc42.tar
hurrycurry-74ffa47147d2bb989057b4513075975c44c2bc42.tar.bz2
hurrycurry-74ffa47147d2bb989057b4513075975c44c2bc42.tar.zst
add serverdata packet with data fields that dont change across games; add motd and server name
Diffstat (limited to 'server/tools/src/graph.rs')
-rw-r--r--server/tools/src/graph.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/src/graph.rs b/server/tools/src/graph.rs
index 7e70d1c8..72eab3fe 100644
--- a/server/tools/src/graph.rs
+++ b/server/tools/src/graph.rs
@@ -16,13 +16,13 @@
*/
use anyhow::Result;
-use hurrycurry_data::build_data;
+use hurrycurry_data::build_gamedata;
use hurrycurry_protocol::{Demand, ItemIndex, Recipe, RecipeIndex};
pub(crate) fn graph() -> Result<()> {
println!("digraph {{");
- let (data, _) = build_data("data".as_ref(), "5star", true)?;
+ let (data, _) = build_gamedata("data".as_ref(), "5star", true)?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))
}