mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 14:58:44 -06:00
fix warnings
This commit is contained in:
parent
710bedeaec
commit
92b0d8972a
|
@ -4,7 +4,6 @@ use shipyard::{
|
||||||
NonSendSync, Unique
|
NonSendSync, Unique
|
||||||
};
|
};
|
||||||
use glium::{
|
use glium::{
|
||||||
Surface,
|
|
||||||
glutin::{
|
glutin::{
|
||||||
event_loop::{EventLoop, ControlFlow},
|
event_loop::{EventLoop, ControlFlow},
|
||||||
event::{Event, WindowEvent}
|
event::{Event, WindowEvent}
|
||||||
|
@ -81,7 +80,7 @@ fn main() {
|
||||||
*control_flow = ControlFlow::Poll;
|
*control_flow = ControlFlow::Poll;
|
||||||
match event {
|
match event {
|
||||||
Event::WindowEvent { event, .. } => match event {
|
Event::WindowEvent { event, .. } => match event {
|
||||||
WindowEvent::Resized(size) => {
|
WindowEvent::Resized(_size) => {
|
||||||
// todo ...
|
// todo ...
|
||||||
}
|
}
|
||||||
WindowEvent::CloseRequested => {
|
WindowEvent::CloseRequested => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use glam::{IVec3, ivec3};
|
use glam::{IVec3, ivec3};
|
||||||
use glium::{VertexBuffer, IndexBuffer, index::PrimitiveType};
|
use glium::{VertexBuffer, IndexBuffer, index::PrimitiveType};
|
||||||
use shipyard::{View, UniqueView, UniqueViewMut, IntoIter, Workload, IntoWorkload, NonSendSync, Nothing};
|
use shipyard::{View, UniqueView, UniqueViewMut, IntoIter, Workload, IntoWorkload, NonSendSync};
|
||||||
use crate::{
|
use crate::{
|
||||||
player::LocalPlayer,
|
player::LocalPlayer,
|
||||||
transform::Transform,
|
transform::Transform,
|
||||||
|
|
|
@ -4,7 +4,7 @@ use super::{
|
||||||
block::Block
|
block::Block
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn generate_world(position: IVec3, seed: u32) -> BlockData {
|
pub fn generate_world(_position: IVec3, _seed: u32) -> BlockData {
|
||||||
let mut blocks = Box::new([[[Block::Air; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]);
|
let mut blocks = Box::new([[[Block::Air; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]);
|
||||||
blocks[0][0][0] = Block::Stone;
|
blocks[0][0][0] = Block::Stone;
|
||||||
blocks[1][0][0] = Block::Stone;
|
blocks[1][0][0] = Block::Stone;
|
||||||
|
|
Loading…
Reference in a new issue