strafe-client/src/lib.rs
2024-02-13 00:14:59 -08:00

21 lines
568 B
Rust

#[cfg(feature="legacy")]
mod legacy;
#[cfg(feature="roblox")]
mod roblox;
#[cfg(feature="source")]
mod source;
pub mod texture_loader;
#[cfg(feature="legacy")]
pub fn legacy()->texture_loader::TextureLoader{
texture_loader::TextureLoader::Legacy(legacy::TextureLoader::new())
}
#[cfg(feature="roblox")]
pub fn roblox()->texture_loader::TextureLoader{
texture_loader::TextureLoader::Roblox(roblox::TextureLoader::new())
}
#[cfg(feature="source")]
pub fn source()->texture_loader::TextureLoader{
texture_loader::TextureLoader::Source(source::TextureLoader::new())
}