This commit is contained in:
nora 2023-04-18 12:22:44 +02:00
parent 41efc35b39
commit 988e775dd6
2 changed files with 4 additions and 18 deletions

View file

@ -3,7 +3,7 @@ use std::{fmt::Debug, marker::PhantomData};
use egui_inspect::{derive::Inspect, Inspect}; use egui_inspect::{derive::Inspect, Inspect};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Inspect)] #[derive(Inspect)]
pub struct TileDef pub struct TileDef
where where
{ {
@ -27,16 +27,9 @@ where
} }
} }
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
pub struct TileBb {
pub x: u8,
pub y: u8,
pub w: u8,
pub h: u8,
}
// this is actually used // this is actually used
#[derive(Serialize, Deserialize, Debug, Inspect)] #[derive(Debug, Inspect)]
pub struct TileDb { pub struct TileDb {
unknown_bg: TileDef, unknown_bg: TileDef,
} }

View file

@ -3,7 +3,7 @@ use std::{fmt::Debug, marker::PhantomData};
use egui_inspect::{derive::Inspect, Inspect}; use egui_inspect::{derive::Inspect, Inspect};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Inspect)] #[derive(Inspect)]
pub struct TileDef pub struct TileDef
where where
{ {
@ -27,16 +27,9 @@ where
} }
} }
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
pub struct TileBb {
pub x: u8,
pub y: u8,
pub w: u8,
pub h: u8,
}
// this is actually used // this is actually used
#[derive(Serialize, Deserialize, Debug, Inspect)] #[derive(Debug, Inspect)]
pub struct TileDb { pub struct TileDb {
unknown_bg: TileDef, unknown_bg: TileDef,
} }