Add basic server-only player harness

This commit is contained in:
NG (Graham) committed 2025-08-16 21:32:14 -04:00
1 parent 94d247f8f4
commit 05bf4a097a
20 files changed
+304 -21

No files matched your search

+14
View File
@@ -33,6 +33,7 @@ pub trait ConfigProvider<C: Clone> {
fn network_config(&self) -> crate::persist::NetworkConf;
fn maps(&self) -> std::collections::HashMap<GameMap, MapConfig>;
fn url_links(&self) -> LinksConfig;
fn fake_players(&self) -> Vec<FakePlayer>;
}
pub struct CompleteCampaignProvider {
@@ -365,3 +366,16 @@ pub struct LinksConfig {
pub support_url: String,
pub wiki_url: String,
}
#[derive(Clone, Debug)]
pub struct FakePlayer {
pub public_id: String,
pub display_name: String,
pub team: u8,
pub implementation: ClientEmulator,
}
#[derive(Clone, Copy, Debug)]
pub enum ClientEmulator {
Experiment,
}