agb/agb-image-converter/src/config.rs

16 lines
377 B
Rust
Raw Normal View History

use std::collections::HashMap;
use crate::{Colour, Colours, TileSize};
pub(crate) trait Config {
fn crate_prefix(&self) -> String;
fn images(&self) -> HashMap<String, &dyn Image>;
fn transparent_colour(&self) -> Option<Colour>;
}
pub(crate) trait Image {
fn filename(&self) -> String;
fn tile_size(&self) -> TileSize;
fn colours(&self) -> Colours;
}