Cleanup
This commit is contained in:
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
@@ -14,12 +14,17 @@
|
||||
"args": [],
|
||||
"cwd": "${workspaceRoot}/game/main",
|
||||
"preLaunchTask": "Build",
|
||||
// "environment": [
|
||||
// {
|
||||
// "name": "RUST_BACKTRACE",
|
||||
// "value": "1"
|
||||
// }
|
||||
// ]
|
||||
"environment": [
|
||||
// {
|
||||
// "name": "RUST_BACKTRACE",
|
||||
// "value": "1"
|
||||
// },
|
||||
{
|
||||
//Set Asset Folder
|
||||
"name": "CARGO_MANIFEST_DIR",
|
||||
"value": "${workspaceRoot}\\game\\main"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
use crate::hex_utils::{HexCoord, INNER_RADIUS};
|
||||
use crate::hex_utils::HexCoord;
|
||||
use crate::{hex_utils::offset3d_to_world, prelude::*};
|
||||
#[cfg(feature = "tracing")]
|
||||
use bevy::log::*;
|
||||
use bevy::math::VectorSpace;
|
||||
use bevy::{
|
||||
prelude::*,
|
||||
render::{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::hex_utils::HexCoord;
|
||||
use crate::map::biome_map::{self, BiomeChunk, BiomeMap};
|
||||
use crate::map::biome_map::BiomeChunk;
|
||||
use crate::prelude::*;
|
||||
use crate::tile_manager::TileAsset;
|
||||
use crate::tile_mapper::TileMapperAsset;
|
||||
|
||||
@@ -8,7 +8,7 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
||||
|
||||
use crate::biome_painter::BiomePainter;
|
||||
use crate::map::biome_map::{BiomeChunk, BiomeData, BiomeMap};
|
||||
use crate::{map, prelude::*};
|
||||
use crate::prelude::*;
|
||||
|
||||
pub fn generate_heightmap(cfg: &GenerationConfig, seed: u32, painter: &BiomePainter) -> (Map, BiomeMap) {
|
||||
let biomes = generate_biomes(cfg, seed, painter);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use num::{PrimInt, Saturating};
|
||||
use std::fmt::Display;
|
||||
|
||||
use crate::prelude::Chunk;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use crate::hex_utils::SHORT_DIAGONAL;
|
||||
use bevy::prelude::*;
|
||||
|
||||
use super::biome_map::BiomeData;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Chunk {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use bevy::prelude::*;
|
||||
use bevy_asset_loader::asset_collection::AssetCollection;
|
||||
use bevy_inspector_egui::InspectorOptions;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ use bevy::prelude::*;
|
||||
use crate::hex_utils::*;
|
||||
|
||||
use super::{
|
||||
biome_map::{BiomeData, BiomeMap},
|
||||
chunk::Chunk,
|
||||
mesh_chunk::MeshChunkData,
|
||||
};
|
||||
|
||||
@@ -4,10 +4,10 @@ use bevy::{math::VectorSpace, prelude::*};
|
||||
use image::ImageBuffer;
|
||||
use rayon::prelude::*;
|
||||
|
||||
use crate::{biome_painter::BiomePainter, hex_utils::HexCoord};
|
||||
use crate::hex_utils::HexCoord;
|
||||
|
||||
use super::{
|
||||
biome_map::{self, BiomeMap},
|
||||
biome_map::BiomeMap,
|
||||
chunk::Chunk,
|
||||
map::Map,
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use std::path::Display;
|
||||
|
||||
use bevy::prelude::Resource;
|
||||
use shared::building::BuildingIdentifier;
|
||||
|
||||
Reference in New Issue
Block a user