mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
more
This commit is contained in:
parent
e3ab4abc20
commit
ed51ba2b9c
2 changed files with 0 additions and 116 deletions
58
src/tiles.rs
58
src/tiles.rs
|
|
@ -127,12 +127,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_TILE_BB: TileBb = TileBb {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
w: TILE_SIZE,
|
|
||||||
h: TILE_SIZE,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
|
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
|
||||||
pub struct TileBb {
|
pub struct TileBb {
|
||||||
|
|
@ -151,55 +145,3 @@ pub struct TileDb {
|
||||||
mid: Vec<TileDef<Mid>>,
|
mid: Vec<TileDef<Mid>>,
|
||||||
fg: Vec<TileDef<Fg>>,
|
fg: Vec<TileDef<Fg>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for TileDb {
|
|
||||||
fn default() -> Self {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<BgTileId> for TileDb {
|
|
||||||
type Output = TileDef<Bg>;
|
|
||||||
|
|
||||||
fn index(&self, index: BgTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<MidTileId> for TileDb {
|
|
||||||
type Output = TileDef<Mid>;
|
|
||||||
|
|
||||||
fn index(&self, index: MidTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<FgTileId> for TileDb {
|
|
||||||
type Output = TileDef<Fg>;
|
|
||||||
|
|
||||||
fn index(&self, index: FgTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const PATH: &str = "tiles.dat";
|
|
||||||
|
|
||||||
impl TileDb {
|
|
||||||
pub fn load_or_default() -> Self {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
pub fn try_save(&self) {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn update_rects(&mut self, rects: &RectMap) {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn update_rect_db<Layer: TileLayer>(db: &mut Vec<TileDef<Layer>>, rects: &RectMap)
|
|
||||||
where
|
|
||||||
Layer::SpecificDef: Debug + Inspect,
|
|
||||||
{
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
58
tiles.rs
58
tiles.rs
|
|
@ -127,12 +127,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_TILE_BB: TileBb = TileBb {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
w: TILE_SIZE,
|
|
||||||
h: TILE_SIZE,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
|
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
|
||||||
pub struct TileBb {
|
pub struct TileBb {
|
||||||
|
|
@ -151,55 +145,3 @@ pub struct TileDb {
|
||||||
mid: Vec<TileDef<Mid>>,
|
mid: Vec<TileDef<Mid>>,
|
||||||
fg: Vec<TileDef<Fg>>,
|
fg: Vec<TileDef<Fg>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for TileDb {
|
|
||||||
fn default() -> Self {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<BgTileId> for TileDb {
|
|
||||||
type Output = TileDef<Bg>;
|
|
||||||
|
|
||||||
fn index(&self, index: BgTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<MidTileId> for TileDb {
|
|
||||||
type Output = TileDef<Mid>;
|
|
||||||
|
|
||||||
fn index(&self, index: MidTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Index<FgTileId> for TileDb {
|
|
||||||
type Output = TileDef<Fg>;
|
|
||||||
|
|
||||||
fn index(&self, index: FgTileId) -> &Self::Output {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const PATH: &str = "tiles.dat";
|
|
||||||
|
|
||||||
impl TileDb {
|
|
||||||
pub fn load_or_default() -> Self {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
pub fn try_save(&self) {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn update_rects(&mut self, rects: &RectMap) {
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn update_rect_db<Layer: TileLayer>(db: &mut Vec<TileDef<Layer>>, rects: &RectMap)
|
|
||||||
where
|
|
||||||
Layer::SpecificDef: Debug + Inspect,
|
|
||||||
{
|
|
||||||
loop {}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue