Skip to content

Commit

Permalink
add PICTURES to asset paths (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgi388 authored Feb 16, 2025
1 parent 6ca070f commit bf8d24f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/asset/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ impl Plugin for AssetPathsPlugin {
fn build(&self, app: &mut App) {
app.insert_resource(AssetPaths {
banners_path: PathBuf::from("DARKOMEN/GRAPHICS/BANNERS"),
pictures_path: PathBuf::from("DARKOMEN/GRAPHICS/PICTURES"),
sprites_path: PathBuf::from("DARKOMEN/GRAPHICS/SPRITES"),
books_path: PathBuf::from("DARKOMEN/GRAPHICS/BOOKS"),
sound_path: PathBuf::from("DARKOMEN/SOUND/SOUND"),
Expand All @@ -25,6 +26,7 @@ impl Plugin for AssetPathsPlugin {
#[reflect(Debug, Resource)]
pub struct AssetPaths {
pub banners_path: PathBuf,
pub pictures_path: PathBuf,
pub sprites_path: PathBuf,
pub books_path: PathBuf,
pub sound_path: PathBuf,
Expand All @@ -37,6 +39,7 @@ impl Default for AssetPaths {
fn default() -> Self {
Self {
banners_path: PathBuf::from("DARKOMEN/GRAPHICS/BANNERS"),
pictures_path: PathBuf::from("DARKOMEN/GRAPHICS/PICTURES"),
sprites_path: PathBuf::from("DARKOMEN/GRAPHICS/SPRITES"),
books_path: PathBuf::from("DARKOMEN/GRAPHICS/BOOKS"),
sound_path: PathBuf::from("DARKOMEN/SOUND/SOUND"),
Expand All @@ -52,6 +55,7 @@ impl AssetPaths {
let mut placeholders = HashMap::new();
placeholders.insert("[BOOKS]", &self.books_path);
placeholders.insert("[BANNERS]", &self.banners_path);
placeholders.insert("[PICTURES]", &self.pictures_path);
placeholders.insert("[SOUND]", &self.sound_effect_packets_path);

// Bevy asset paths are meant to be virtual paths, not OS paths, so we
Expand Down

0 comments on commit bf8d24f

Please sign in to comment.