mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Make power bar configurable
This commit is contained in:
@@ -34,6 +34,7 @@ pub trait ConfigProvider<C: Clone> {
|
||||
fn maps(&self) -> std::collections::HashMap<GameMap, MapConfig>;
|
||||
fn url_links(&self) -> LinksConfig;
|
||||
fn fake_players(&self) -> Vec<FakePlayer>;
|
||||
fn energy(&self) -> EnergyConfig;
|
||||
}
|
||||
|
||||
pub struct CompleteCampaignProvider {
|
||||
@@ -379,3 +380,9 @@ pub struct FakePlayer {
|
||||
pub enum ClientEmulator {
|
||||
Experiment,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct EnergyConfig {
|
||||
pub refill_rate: f32,
|
||||
pub total: u32,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user