feat: Add wonder_event_url to GameConfig
This commit is contained in:
@@ -26,5 +26,7 @@
|
||||
"slice": "Seed3",
|
||||
"growth_stages": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"wonder_event_url": "wss://pomomon.farm/ws"
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ pub struct GameConfig {
|
||||
pub shovel_base_price: u32,
|
||||
pub shovel_rate: f32,
|
||||
pub berry_seeds: Vec<BerrySeedConfig>,
|
||||
pub wonder_event_url: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
@@ -52,6 +53,7 @@ impl Default for GameConfig {
|
||||
growth_stages: 6,
|
||||
},
|
||||
],
|
||||
wonder_event_url: "wss://pomomon.farm/ws".into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,8 @@ fn test_load_valid_config() {
|
||||
"pom_speed": 2.0,
|
||||
"shovel_base_price": 10,
|
||||
"shovel_rate": 0.2,
|
||||
"berry_seeds": []
|
||||
"berry_seeds": [],
|
||||
"wonder_event_url": "wss://pomomon.farm/ws"
|
||||
}"#,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user