mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 11:45:01 +01:00
more
This commit is contained in:
parent
41efc35b39
commit
988e775dd6
2 changed files with 4 additions and 18 deletions
11
src/tiles.rs
11
src/tiles.rs
|
|
@ -3,7 +3,7 @@ use std::{fmt::Debug, marker::PhantomData};
|
|||
use egui_inspect::{derive::Inspect, Inspect};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Inspect)]
|
||||
#[derive(Inspect)]
|
||||
pub struct TileDef
|
||||
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
|
||||
#[derive(Serialize, Deserialize, Debug, Inspect)]
|
||||
#[derive(Debug, Inspect)]
|
||||
pub struct TileDb {
|
||||
unknown_bg: TileDef,
|
||||
}
|
||||
|
|
|
|||
11
tiles.rs
11
tiles.rs
|
|
@ -3,7 +3,7 @@ use std::{fmt::Debug, marker::PhantomData};
|
|||
use egui_inspect::{derive::Inspect, Inspect};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Inspect)]
|
||||
#[derive(Inspect)]
|
||||
pub struct TileDef
|
||||
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
|
||||
#[derive(Serialize, Deserialize, Debug, Inspect)]
|
||||
#[derive(Debug, Inspect)]
|
||||
pub struct TileDb {
|
||||
unknown_bg: TileDef,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue