Implement factory offset saving

This commit is contained in:
NG (Graham) committed 2026-01-05 16:21:14 -05:00
1 parent 49255e7e7c
commit 437b7f9fdd
8 files changed
+166 -18

No files matched your search

+8
View File
@@ -49,6 +49,14 @@ impl oj_rc_factory::VehicleFactoryAdapter for Factory {
Self::None => Ok(()),
}
}
async fn update_vehicle(&self, id: i32, cube_data: Option<Vec<u8>>, colour_data: Option<Vec<u8>>) -> Result<(), Box<dyn std::error::Error>> {
match self {
Self::Arc(x) => x.update_vehicle(id, cube_data, colour_data).await,
Self::Custom(x) => x.update_vehicle(id, cube_data, colour_data).await,
Self::None => Ok(()),
}
}
}
impl Factory {