aboutsummaryrefslogtreecommitdiff
path: root/server/src/benchmark.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/src/benchmark.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/src/benchmark.rs')
-rw-r--r--server/src/benchmark.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/benchmark.rs b/server/src/benchmark.rs
index 6e9e4eb7..216cf0a8 100644
--- a/server/src/benchmark.rs
+++ b/server/src/benchmark.rs
@@ -22,7 +22,7 @@ use crate::{
};
use anyhow::Result;
use hurrycurry_bot::algos::Simple;
-use hurrycurry_data::build_data;
+use hurrycurry_data::build_gamedata;
use hurrycurry_protocol::{Character, PacketC, PlayerClass};
use log::debug;
use std::{path::PathBuf, time::Instant};
@@ -37,7 +37,7 @@ pub fn benchmark(data_path: PathBuf) -> Result<()> {
broadcast::channel(1024).0,
)?;
- server.load(build_data(&server.config.data_path, "junior", true)?, None);
+ server.load(build_gamedata(&server.config.data_path, "junior", true)?, None);
server.entities.push(Box::new(BotDriver::new(
"player".to_string(),