World structs
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
mod generator;
|
||||
use generator::WorldGen;
|
||||
mod chunk;
|
||||
use chunk::WorldChunk;
|
||||
mod block;
|
||||
use block::WorldBlock;
|
||||
|
||||
pub struct World {
|
||||
name: String,
|
||||
chunks: Vec<WorldChunk> // Loaded chunks
|
||||
}
|
||||
|
||||
impl World {
|
||||
|
||||
pub fn new(name: String) -> Self {
|
||||
Self { name, chunks: Vec::new() }
|
||||
}
|
||||
|
||||
fn load(&mut self) {
|
||||
|
||||
}
|
||||
|
||||
fn save(&mut self) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user