2022-02-03 15:16:41 -05:00
|
|
|
use ::rltk::prelude::*;
|
2021-12-24 10:38:44 -05:00
|
|
|
use ::rltk::rex::XpFile;
|
2021-11-29 14:59:46 -05:00
|
|
|
|
2021-12-24 10:38:44 -05:00
|
|
|
embedded_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
|
|
|
|
embedded_resource!(WFC_DEMO_IMAGE1, "../resources/wfc-demo1.xp");
|
|
|
|
embedded_resource!(WFC_POPULATED, "../resources/wfc-populated.xp");
|
2021-11-29 14:59:46 -05:00
|
|
|
|
|
|
|
pub struct RexAssets {
|
|
|
|
pub menu: XpFile,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl RexAssets {
|
|
|
|
pub fn new() -> RexAssets {
|
2021-12-24 10:38:44 -05:00
|
|
|
link_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
|
|
|
|
link_resource!(WFC_DEMO_IMAGE1, "../resources/wfc-demo1.xp");
|
|
|
|
link_resource!(WFC_POPULATED, "../resources/wfc-populated.xp");
|
2021-11-29 14:59:46 -05:00
|
|
|
|
|
|
|
RexAssets {
|
|
|
|
menu: XpFile::from_resource("../resources/SmallDungeon_80x50.xp").unwrap(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|