mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
world structure
This commit is contained in:
parent
000e1c341a
commit
d96e99fd0e
|
@ -80,7 +80,7 @@ fn main() {
|
|||
//Run update workflow
|
||||
world.run_workload(update).unwrap();
|
||||
|
||||
//Start rendering
|
||||
//Start rendering (maybe use custom views for this?)
|
||||
let mut target = {
|
||||
let renderer = world.borrow::<NonSendSync<UniqueView<Rederer>>>().unwrap();
|
||||
renderer.display.draw()
|
||||
|
|
|
@ -1,2 +1,11 @@
|
|||
use glam::IVec2;
|
||||
use hashbrown::HashMap;
|
||||
|
||||
pub mod chunk;
|
||||
pub mod block;
|
||||
|
||||
use chunk::Chunk;
|
||||
|
||||
pub struct World {
|
||||
pub chunks: HashMap<IVec2, Chunk>
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
pub struct Chunk;
|
Loading…
Reference in a new issue