wip: 1 more pass, 82e, near there
Some checks are pending
/ build (push) Waiting to run

gotta replace that Measure thing with RwLock<[u16;2]>
This commit is contained in:
okay stopped screaming 2026-03-22 00:00:21 +02:00
parent 60dbd89fc9
commit 9ef63324af
6 changed files with 26 additions and 21 deletions

View file

@ -3,6 +3,7 @@ use ::std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::*}};
use ::atomic_float::AtomicF64;
use ::tengri::{draw::*, term::*};
impl <T: AsRef<Clock>+AsMut<Clock>> HasClock for T {}
pub trait HasClock: AsRef<Clock> + AsMut<Clock> {
fn clock (&self) -> &Clock { self.as_ref() }
fn clock_mut (&mut self) -> &mut Clock { self.as_mut() }