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
80206ebcd3
commit
98730fcab1
2 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use proc_macro::TokenStream;
|
||||
use quote::quote;
|
||||
|
||||
#[proc_macro_derive(Inspect)]
|
||||
pub fn derive_inspect(_: TokenStream) -> TokenStream {
|
||||
#[proc_macro]
|
||||
pub fn expand(_: TokenStream) -> TokenStream {
|
||||
quote! {
|
||||
impl GameState {
|
||||
fn inspect_mut(&mut self) {
|
||||
|
|
|
|||
|
|
@ -4,13 +4,15 @@ pub struct TileDef {
|
|||
pub blend_graphic: String,
|
||||
}
|
||||
|
||||
use egui_inspect_derive::Inspect;
|
||||
use egui_inspect_derive::expand;
|
||||
|
||||
|
||||
#[derive(Inspect)]
|
||||
pub(crate) struct GameState {
|
||||
pub(crate) tile_db: TileDb,
|
||||
}
|
||||
|
||||
expand! {}
|
||||
|
||||
fn new() -> GameState {
|
||||
loop {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue