Guess weapon order for factory downloads (since they have no weapon order) #6

This commit is contained in:
NG (Graham) committed 2025-05-18 20:33:29 -04:00
1 parent 49781d35b2
commit fd75dba80e
10 files changed
+164 -6

No files matched your search

+4
View File
@@ -277,4 +277,8 @@ impl <C: Clone> super::ConfigProvider<C> for CubeConfig {
async fn factory(&self) -> Result<crate::factory::Factory, Box<dyn std::error::Error + 'static>> {
crate::factory::Factory::from_config(&self.factory).await
}
fn cubes(&self) -> &'_ std::collections::HashMap<String, crate::persist::Cube> {
&self.cubes
}
}
+1
View File
@@ -22,6 +22,7 @@ pub trait ConfigProvider<C: Clone> {
fn server_config(&self) -> ServerConfig;
fn garage_upgrades(&self) -> GarageUpgrades;
async fn factory(&self) -> Result<crate::factory::Factory, Box<dyn std::error::Error + 'static>>;
fn cubes(&self) -> &'_ std::collections::HashMap<String, crate::persist::Cube>;
}
pub struct CompleteCampaignProvider {