This commit is contained in:
nora 2023-04-18 12:23:25 +02:00
parent 786f2ea703
commit 39f436e014
2 changed files with 18 additions and 33 deletions

View file

@ -1,35 +1,27 @@
use std::{fmt::Debug, marker::PhantomData}; use std::{fmt::Debug, marker::PhantomData};
use egui_inspect::{derive::Inspect, Inspect}; use egui_inspect::{derive::Inspect, Inspect};
use serde::{Deserialize, Serialize};
#[derive(Inspect)] #[derive(Inspect)]
pub struct TileDef pub struct TileDef {
where
{
pub layer: (), pub layer: (),
//ADD pub blend_graphic: String, //ADD pub blend_graphic: String,
} }
impl Debug for TileDef impl Debug for TileDef {
where
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
loop {} loop {}
} }
} }
impl Default for TileDef<>
where
{
fn default() -> Self {
loop {}
}
}
// this is actually used // this is actually used
#[derive(Debug, Inspect)] #[derive(Inspect)]
pub struct TileDb { pub struct TileDb {
unknown_bg: TileDef, unknown_bg: TileDef,
} }
impl Debug for TileDb {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
loop {}
}
}

View file

@ -3,32 +3,25 @@ use std::{fmt::Debug, marker::PhantomData};
use egui_inspect::{derive::Inspect, Inspect}; use egui_inspect::{derive::Inspect, Inspect};
#[derive(Inspect)] #[derive(Inspect)]
pub struct TileDef pub struct TileDef {
where
{
pub layer: (), pub layer: (),
//ADD pub blend_graphic: String, //ADD pub blend_graphic: String,
} }
impl Debug for TileDef impl Debug for TileDef {
where
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
loop {} loop {}
} }
} }
impl Default for TileDef<>
where
{
fn default() -> Self {
loop {}
}
}
// this is actually used // this is actually used
#[derive(Debug, Inspect)] #[derive(Inspect)]
pub struct TileDb { pub struct TileDb {
unknown_bg: TileDef, unknown_bg: TileDef,
} }
impl Debug for TileDb {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
loop {}
}
}