buildings wip

This commit is contained in:
2024-07-15 21:30:07 -04:00
parent 898acc2822
commit f52b44d0dd
8 changed files with 46 additions and 26 deletions

View File

@@ -1,15 +1,15 @@
#[cfg(feature = "tracing")]
use bevy::log::*;
use bevy::{
asset::{AssetEvents, LoadState},
asset::LoadState,
pbr::{ExtendedMaterial, NotShadowCaster},
prelude::*,
};
use bevy_inspector_egui::quick::ResourceInspectorPlugin;
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
use shared::states::{GameplayState, MenuState};
use shared::states::{AssetLoadState, GameplayState, MenuState};
use world_generation::{
biome_asset::{BiomeAsset, BiomeAssetLoadState},
biome_asset::{BiomeAsset, BiomeAssetLoadState, BiomeAssetPlugin},
biome_painter::*,
heightmap::generate_heightmap,
hex_utils::{offset_to_index, SHORT_DIAGONAL},
@@ -42,6 +42,12 @@ impl Plugin for MapInitPlugin {
app.insert_state(GeneratorState::Startup);
app.insert_state(AssetLoadState::StartLoading);
//Assets
app.add_plugins(TileAssetPlugin);
app.add_plugins(TileMapperAssetPlugin);
app.add_plugins(BiomePainterPlugin);
app.add_plugins(BiomeAssetPlugin);
app.add_plugins(ResourceInspectorPlugin::<GenerationConfig>::default());
app.add_plugins(ResourceInspectorPlugin::<WaterInspect>::default());
app.register_type::<ExtendedMaterial<StandardMaterial, WaterMaterial>>();