roast2d_internal 0.3.5

Roast2D internal crate
Documentation
1
2
3
4
5
6
use crate::{animation::SpriteDesc, sprite::Sprite};

pub trait AnimationAssets<TextureKey> {
    fn get_sprite_desc(&self, desc_key: &str) -> Option<&SpriteDesc<TextureKey>>;
    fn get_texture(&self, sprite_key: &TextureKey) -> Option<&Sprite>;
}