1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add basic server-only player harness

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

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,
}