2023-09-12 18:25:33 +00:00
|
|
|
pub mod resource_manager;
|
2023-09-12 23:07:03 +00:00
|
|
|
pub use resource_manager::*;
|
|
|
|
|
2023-09-12 18:25:33 +00:00
|
|
|
pub mod resource;
|
2023-09-12 23:07:03 +00:00
|
|
|
pub use resource::*;
|
|
|
|
|
2023-09-12 18:25:33 +00:00
|
|
|
pub mod texture;
|
2023-09-12 23:07:03 +00:00
|
|
|
pub use texture::*;
|
|
|
|
|
2023-09-12 18:25:33 +00:00
|
|
|
pub mod loader;
|
2023-09-12 23:07:03 +00:00
|
|
|
pub use loader::*;
|
2023-09-12 18:25:33 +00:00
|
|
|
|
|
|
|
pub fn add(left: usize, right: usize) -> usize {
|
|
|
|
left + right
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn it_works() {
|
|
|
|
let result = add(2, 2);
|
|
|
|
assert_eq!(result, 4);
|
|
|
|
}
|
|
|
|
}
|