Populate garage data from factory purchase better #6

This commit is contained in:
NG (Graham) committed 2025-05-18 16:55:12 -04:00
1 parent 3f1438c068
commit 49781d35b2
8 files changed
+49 -14

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#[async_trait::async_trait]
pub trait VehicleFactoryAdapter: Send + Sync + 'static {
async fn vehicle(&self, id: u32) -> Result<Option<VehicleInfo>, Box<dyn std::error::Error>>;
async fn vehicle(&self, id: u32) -> Result<Option<(VehicleInfo, VehicleQueryInfo)>, Box<dyn std::error::Error>>;
async fn list(&self, query: libfj::robocraft::ListQuery) -> Result<Vec<VehicleQueryInfo>, Box<dyn std::error::Error>>;
}