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
786f2ea703
commit
39f436e014
2 changed files with 18 additions and 33 deletions
26
src/tiles.rs
26
src/tiles.rs
|
|
@ -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 {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
25
tiles.rs
25
tiles.rs
|
|
@ -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 {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue