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:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user