Skip to content

Commit

Permalink
chore: move asset/directory -> asset/pack_file/directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
UserIsntAvailable committed Jan 17, 2024
1 parent 36ba083 commit 399d7d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions engine/src/asset/pack_file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! This only works with the last version of Ashen :).
mod directory;

use crate::utils::nom::*;
use flate2::read::ZlibDecoder;
use std::io::Read;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::PackFile;
use engine::{asset::Asset, directory::Directory};
use crate::{asset::Asset, directory::Directory};
use std::collections::HashMap;

macro_rules! insert_asset {
Expand Down Expand Up @@ -28,8 +28,9 @@ impl PackFileDirectory {

impl Directory for PackFileDirectory {
fn get<A: Asset>(&self, id: &str) -> A {
let bytes = self.assets.get(id).expect("id was found");
A::parse(bytes, Default::default())
// let bytes = self.assets.get(id).expect("id was found");
// A::parse(bytes, Default::default())
todo!()
}

fn get_all<A: Asset>(&self) -> Vec<A> {
Expand Down

0 comments on commit 399d7d7

Please sign in to comment.