mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Get capture points workins #30 (mars 1 only)
This commit is contained in:
@@ -391,14 +391,14 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
|
||||
spawns.insert(point.team, list);
|
||||
}
|
||||
}
|
||||
let bases = conf.bases.iter().map(|base| (base.team, super::Sphere {
|
||||
let bases = conf.bases.iter().map(|base| (base.team, (super::Sphere {
|
||||
radius: base.radius,
|
||||
center: super::Point {
|
||||
x: base.x,
|
||||
y: base.y,
|
||||
z: base.z,
|
||||
},
|
||||
})).collect();
|
||||
}, base.percent_per_second))).collect();
|
||||
let map_conf = super::MapConfig {
|
||||
spawns,
|
||||
bases,
|
||||
|
||||
@@ -347,5 +347,5 @@ pub struct Sphere {
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct MapConfig {
|
||||
pub spawns: std::collections::HashMap<u8, Vec<Point>>, // team -> points
|
||||
pub bases: std::collections::HashMap<u8, Sphere>, // team -> base
|
||||
pub bases: std::collections::HashMap<u8, (Sphere, f32)>, // team -> base
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user