19 lines
453 B
Rust
19 lines
453 B
Rust
use rltk::rex::XpFile;
|
|
|
|
rltk::embedded_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
|
|
|
|
pub struct RexAssets {
|
|
pub menu: XpFile,
|
|
}
|
|
|
|
impl RexAssets {
|
|
#[allow(clippy::new_without_default)]
|
|
pub fn new() -> RexAssets {
|
|
rltk::link_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
|
|
|
|
RexAssets {
|
|
menu: XpFile::from_resource("../resources/SmallDungeon_80x50.xp").unwrap(),
|
|
}
|
|
}
|
|
}
|