Skip to content

Commit 345639b

Browse files
committed
Collect all worldgen code into the worldgen module
1 parent 57ceb89 commit 345639b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

common/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ mod margins;
2626
pub mod math;
2727
pub mod node;
2828
pub mod peer_traverser;
29-
mod plane;
3029
pub mod proto;
3130
mod sim_config;
32-
pub mod terraingen;
3331
pub mod traversal;
3432
pub mod voxel_math;
3533
pub mod world;

common/src/worldgen.rs renamed to common/src/worldgen/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
use horosphere::{HorosphereChunk, HorosphereNode};
2+
use plane::Plane;
23
use rand::{Rng, SeedableRng, distr::Uniform};
34
use rand_distr::Normal;
5+
use terraingen::VoronoiInfo;
46

57
use crate::{
68
dodeca::{Side, Vertex},
79
graph::{Graph, NodeId},
810
margins,
911
math::{self, MVector},
1012
node::{ChunkId, VoxelData},
11-
plane::Plane,
12-
terraingen::VoronoiInfo,
1313
world::Material,
1414
};
1515

1616
mod horosphere;
17+
mod plane;
18+
mod terraingen;
1719

1820
#[derive(Clone, Copy, PartialEq, Debug)]
1921
enum NodeStateKind {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)