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