You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heya, I was working on something using this library, and I'm noticing a distinct lack of being able to pass a reference to existing instances of objects, such as the initial Ironworks instance created.
This is what I've been doing to get myself going, but it feels kinda bad not being able to pass a reference into the new Excel instance being created.
let ironworks = Ironworks::new().with_resource(SqPack::new(Install::at(Path::new(&env::var("FFXIV_PATH").expect("FFXIV_PATH not set"),))));let excel = Excel::new(ironworks).with_default_language(Language::English);
The text was updated successfully, but these errors were encountered:
Ah, sorry, the public interface of iw has suffered a little from being heavily consumed in bm - the async stuff has lead to a fair amount of 'static for the sake of simplicity.
let ironworks = Arc::new(Ironworks::new().with_resource(...));let excel = Excel::new(Arc::clone(&ironworks));// use as you'd expectlet list = ironworks.file::<exl::ExcelList>("exd/root.exl")?;let field = excel.sheet("Item")?.row(37362)?.field(0)?;
bm does effectively this to manage its iw instances (permalink):
Heya, I was working on something using this library, and I'm noticing a distinct lack of being able to pass a reference to existing instances of objects, such as the initial Ironworks instance created.
This is what I've been doing to get myself going, but it feels kinda bad not being able to pass a reference into the new Excel instance being created.
The text was updated successfully, but these errors were encountered: