mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
15 lines
330 B
Rust
15 lines
330 B
Rust
use std::collections::HashMap;
|
|
|
|
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;
|
|
}
|