clock: replace provide calls with expose stubs

This commit is contained in:
🪞👃🪞 2025-05-09 00:06:51 +03:00
parent e3b12a1d36
commit 1b48e10d2d
2 changed files with 13 additions and 4 deletions

View file

@ -1,8 +1,17 @@
use crate::*; use crate::*;
provide_num!(u32: |self: Clock| {}); #[tengri_proc::expose]
provide!(Option<u32>: |self: Clock| {}); impl Clock {
provide!(f64: |self: Clock| {}); fn _todo_provide_u32 (&self) -> u32 {
todo!()
}
fn _todo_provide_opt_u32 (&self) -> Option<u32> {
todo!()
}
fn _todo_provide_f64 (&self) -> f64 {
todo!()
}
}
impl<T: HasClock> Command<T> for ClockCommand { impl<T: HasClock> Command<T> for ClockCommand {
fn execute (self, state: &mut T) -> Perhaps<Self> { fn execute (self, state: &mut T) -> Perhaps<Self> {

2
deps/tengri vendored

@ -1 +1 @@
Subproject commit a16603fbc88a41c0cb4a315383cb647b0f9bb2b5 Subproject commit b7bb6119aac975632969719c7ec5b71d97dbe356