mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-29 02:08:48 -06:00
world structure
This commit is contained in:
parent
000e1c341a
commit
d96e99fd0e
|
@ -80,7 +80,7 @@ fn main() {
|
||||||
//Run update workflow
|
//Run update workflow
|
||||||
world.run_workload(update).unwrap();
|
world.run_workload(update).unwrap();
|
||||||
|
|
||||||
//Start rendering
|
//Start rendering (maybe use custom views for this?)
|
||||||
let mut target = {
|
let mut target = {
|
||||||
let renderer = world.borrow::<NonSendSync<UniqueView<Rederer>>>().unwrap();
|
let renderer = world.borrow::<NonSendSync<UniqueView<Rederer>>>().unwrap();
|
||||||
renderer.display.draw()
|
renderer.display.draw()
|
||||||
|
|
|
@ -1,2 +1,11 @@
|
||||||
|
use glam::IVec2;
|
||||||
|
use hashbrown::HashMap;
|
||||||
|
|
||||||
pub mod chunk;
|
pub mod chunk;
|
||||||
pub mod block;
|
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