This commit is contained in:
nora 2023-04-18 15:51:34 +02:00
parent 4c6911e1d2
commit 12efe0f210
2 changed files with 8 additions and 3 deletions

View file

@ -8,7 +8,7 @@ cargo build
./apply.py
OUT=$(cargo build 2>&1)
OUT=$(cargo rustc -- --cfg second 2>&1)
cp tiles.rs src/tiles.rs

View file

@ -1,5 +1,10 @@
extern crate alloc;
mod tiles;
pub struct TileDef {
pub layer: (),
#[cfg(second)]
pub blend_graphic: String,
}
pub(crate) struct App {
pub(crate) game: GameState,
@ -26,7 +31,7 @@ fn main() {
}
// this is actually used
pub struct TileDb {
unknown_bg: tiles::TileDef,
unknown_bg: TileDef,
}
impl std::fmt::Debug for TileDb {