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

Add basic client AI support

This commit is contained in:
NG (Graham)
2025-09-27 12:36:49 -04:00
parent 91fc2db868
commit e55bd6d288
29 changed files with 652 additions and 317 deletions

View File

@@ -453,9 +453,8 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
fn fake_players(&self) -> Vec<super::FakePlayer> {
self.battle.multiplayer.fakes.iter().map(|player| super::FakePlayer {
public_id: player.public_id.clone(),
display_name: player.display_name.clone(),
team: player.team,
vehicle: player.vehicle.into_conf(),
implementation: player.implementation.clone().to_config(),
}).collect()
}

View File

@@ -376,15 +376,15 @@ pub struct LinksConfig {
#[derive(Clone, Debug)]
pub struct FakePlayer {
pub public_id: String,
pub display_name: String,
pub team: u8,
pub vehicle: VehicleInfo,
pub implementation: ClientEmulator,
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ClientEmulator {
Experiment,
ClientAI,
}
#[derive(Clone, Debug)]