diff --git a/plate-tool-lib/src/transfer_region_cache.rs b/plate-tool-lib/src/transfer_region_cache.rs index bb453a3..db20014 100644 --- a/plate-tool-lib/src/transfer_region_cache.rs +++ b/plate-tool-lib/src/transfer_region_cache.rs @@ -31,6 +31,12 @@ impl TransferRegionCache { } } + pub fn generate_cache(&self, trs: &[Transfer]) { + for tr in trs.iter() { + self.add_overwrite(tr); + } + } + pub fn invalidate(&self, tr: &Transfer) { if let Ok(mut interior) = self.interior.lock() { interior.cache.remove(&tr.id);