Skip to content

Commit

Permalink
sync: main
Browse files Browse the repository at this point in the history
  • Loading branch information
nenikitov committed Feb 17, 2024
2 parents 5ff29bb + 8e25299 commit 401d419
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion engine/src/asset/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use dat::{

use super::{
extension::*,
texture::dat::{size::TextureSize, texture::Texture},
texture::{Texture, TextureSize},
AssetParser,
};
use crate::utils::nom::*;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/asset/skybox.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{
extension::*,
texture::dat::{size::TextureSize, texture::Texture},
texture::{Texture, TextureSize},
AssetParser,
};
use crate::{asset::color_map::Color, utils::nom::*};
Expand Down
3 changes: 1 addition & 2 deletions engine/src/asset/sound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ impl Sound {
match self {
Sound::Song(sound) => sound.mix(false),
Sound::Effect(effect) => effect.mix(),
}
}
} }
}

pub struct SoundCollection;
Expand Down
8 changes: 3 additions & 5 deletions engine/src/asset/texture/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// TODO(nenikitov): When textures are moved to a separate public module later,
// this `pub(crate)` could be deleted
pub(crate) mod dat;
mod dat;

use dat::{offset::TextureOffset, size::TextureSize, texture::MippedTexture};
use dat::{offset::TextureOffset, texture::MippedTexture};
pub use dat::{size::TextureSize, texture::Texture};

use self::dat::texture::Texture;
use super::{extension::*, AssetParser};
use crate::utils::{compression::decompress, nom::*};

Expand Down

0 comments on commit 401d419

Please sign in to comment.