mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
a
This commit is contained in:
parent
ded39c285e
commit
2a647604ff
|
@ -21,6 +21,9 @@ impl WorldThreading {
|
|||
self.load_tasks.is_empty() &&
|
||||
self.mesh_tasks.is_empty()
|
||||
}
|
||||
pub fn task_amount(&self) -> usize {
|
||||
self.load_tasks.len() + self.mesh_tasks.len()
|
||||
}
|
||||
pub fn queue_load(&mut self, position: IVec2) {
|
||||
let handle = thread::spawn(|| {
|
||||
world_gen::generate_chunk()
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
use crate::game::world::chunk::Chunk;
|
||||
|
||||
pub fn generate_mesh(chunk: &Chunk, neighbors: [&Chunk; 4]) {
|
||||
|
||||
}
|
Loading…
Reference in a new issue