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

16 lines
365 B
Rust
Raw Normal View History

use std::collections::HashMap;
2023-04-14 07:18:13 +10:00
use crate::{Colour, Colours};
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 colours(&self) -> Colours;
2023-08-29 22:18:14 +10:00
fn deduplicate(&self) -> bool;
}