mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 04:45: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 proc_macro::TokenStream;
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
|
|
||||||
#[proc_macro_derive(Inspect)]
|
#[proc_macro]
|
||||||
pub fn derive_inspect(_: TokenStream) -> TokenStream {
|
pub fn expand(_: TokenStream) -> TokenStream {
|
||||||
quote! {
|
quote! {
|
||||||
impl GameState {
|
impl GameState {
|
||||||
fn inspect_mut(&mut self) {
|
fn inspect_mut(&mut self) {
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,15 @@ pub struct TileDef {
|
||||||
pub blend_graphic: String,
|
pub blend_graphic: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
use egui_inspect_derive::Inspect;
|
use egui_inspect_derive::expand;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Inspect)]
|
|
||||||
pub(crate) struct GameState {
|
pub(crate) struct GameState {
|
||||||
pub(crate) tile_db: TileDb,
|
pub(crate) tile_db: TileDb,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expand! {}
|
||||||
|
|
||||||
fn new() -> GameState {
|
fn new() -> GameState {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue