mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
more
This commit is contained in:
parent
98730fcab1
commit
accbdc83bf
2 changed files with 7 additions and 7 deletions
|
|
@ -4,12 +4,8 @@ use quote::quote;
|
||||||
#[proc_macro]
|
#[proc_macro]
|
||||||
pub fn expand(_: TokenStream) -> TokenStream {
|
pub fn expand(_: TokenStream) -> TokenStream {
|
||||||
quote! {
|
quote! {
|
||||||
impl GameState {
|
output_mut(|o| o.copied_text = "".into());
|
||||||
fn inspect_mut(&mut self) {
|
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
|
||||||
output_mut(|o| o.copied_text = "".into());
|
|
||||||
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,11 @@ pub(crate) struct GameState {
|
||||||
pub(crate) tile_db: TileDb,
|
pub(crate) tile_db: TileDb,
|
||||||
}
|
}
|
||||||
|
|
||||||
expand! {}
|
impl GameState {
|
||||||
|
fn inspect_mut(&mut self) {
|
||||||
|
expand! {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn new() -> GameState {
|
fn new() -> GameState {
|
||||||
loop {}
|
loop {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue