mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 08:18:43 -06:00
remove track(...)
This commit is contained in:
parent
7b6d50abe5
commit
a8142468a2
|
@ -2,9 +2,7 @@ use shipyard::Component;
|
||||||
use glam::{Mat4, Mat3};
|
use glam::{Mat4, Mat3};
|
||||||
|
|
||||||
#[derive(Component, Clone, Copy, Debug, Default)]
|
#[derive(Component, Clone, Copy, Debug, Default)]
|
||||||
#[track(All)]
|
|
||||||
pub struct Transform(pub Mat4);
|
pub struct Transform(pub Mat4);
|
||||||
|
|
||||||
#[derive(Component, Clone, Copy, Debug, Default)]
|
#[derive(Component, Clone, Copy, Debug, Default)]
|
||||||
#[track(All)]
|
|
||||||
pub struct Transform2d(pub Mat3);
|
pub struct Transform2d(pub Mat3);
|
||||||
|
|
|
@ -3,7 +3,6 @@ use crate::rendering::Renderer;
|
||||||
use glium::glutin::window::CursorGrabMode;
|
use glium::glutin::window::CursorGrabMode;
|
||||||
|
|
||||||
#[derive(Unique)]
|
#[derive(Unique)]
|
||||||
#[track(All)]
|
|
||||||
pub struct CursorLock(pub bool);
|
pub struct CursorLock(pub bool);
|
||||||
|
|
||||||
pub fn update_cursor_lock_state(
|
pub fn update_cursor_lock_state(
|
||||||
|
|
|
@ -2,7 +2,6 @@ use shipyard::{Unique, UniqueView, UniqueViewMut, AllStoragesView};
|
||||||
use std::mem::take;
|
use std::mem::take;
|
||||||
|
|
||||||
#[derive(Unique, PartialEq, Eq, Default, Clone, Copy)]
|
#[derive(Unique, PartialEq, Eq, Default, Clone, Copy)]
|
||||||
#[track(All)]
|
|
||||||
pub enum GameState {
|
pub enum GameState {
|
||||||
#[default]
|
#[default]
|
||||||
Initial,
|
Initial,
|
||||||
|
@ -12,7 +11,6 @@ pub enum GameState {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Unique, PartialEq, Eq, Default, Clone, Copy)]
|
#[derive(Unique, PartialEq, Eq, Default, Clone, Copy)]
|
||||||
#[track(All)]
|
|
||||||
pub struct NextState(pub Option<GameState>);
|
pub struct NextState(pub Option<GameState>);
|
||||||
|
|
||||||
pub fn init_state(
|
pub fn init_state(
|
||||||
|
|
|
@ -24,7 +24,6 @@ use queue::BlockUpdateQueue;
|
||||||
// because this is not send-sync
|
// because this is not send-sync
|
||||||
|
|
||||||
#[derive(Default, Unique)]
|
#[derive(Default, Unique)]
|
||||||
#[track(Modification)]
|
|
||||||
pub struct ChunkStorage {
|
pub struct ChunkStorage {
|
||||||
pub chunks: HashMap<IVec3, Chunk>
|
pub chunks: HashMap<IVec3, Chunk>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue