mirror of
https://codeberg.org/icewind/tf-asset-loader.git
synced 2026-06-03 16:44:10 +02:00
example/docs
This commit is contained in:
parent
7901957f3e
commit
e38ce5b316
5 changed files with 53 additions and 1 deletions
9
examples/open.rs
Normal file
9
examples/open.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use tf_asset_loader::{Loader, LoaderError};
|
||||
|
||||
fn main() -> Result<(), LoaderError> {
|
||||
let loader = Loader::new()?;
|
||||
if let Some(model) = loader.load("models/props_gameplay/resupply_locker.mdl")? {
|
||||
println!("resupply_locker.mdl is {} bytes large", model.len());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue