mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
more
This commit is contained in:
parent
accbdc83bf
commit
d32839a469
2 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ use quote::quote;
|
|||
pub fn expand(_: TokenStream) -> TokenStream {
|
||||
quote! {
|
||||
output_mut(|o| o.copied_text = "".into());
|
||||
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
|
||||
}
|
||||
.into()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ pub struct TileDef {
|
|||
|
||||
use egui_inspect_derive::expand;
|
||||
|
||||
|
||||
pub(crate) struct GameState {
|
||||
pub(crate) tile_db: TileDb,
|
||||
}
|
||||
|
|
@ -14,6 +13,7 @@ pub(crate) struct GameState {
|
|||
impl GameState {
|
||||
fn inspect_mut(&mut self) {
|
||||
expand! {}
|
||||
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue