~starkingdoms/starkingdoms

ref: 71ce7ed846f05352b63458d4a63a97cca36169dd starkingdoms/client/src/textures/mod.rs -rw-r--r-- 198 bytes
71ce7ed8 — c0repwn3r spritesheets 2 years ago
                                                                                
1
2
3
4
5
6
7
8
use std::error::Error;

pub mod loader;

pub trait TextureManager {
    fn load() -> Result<Self, Box<dyn Error>> where Self: Sized;
    fn get_texture(&self, texture_id: &str) -> Option<&String>;
}