mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
This commit is contained in:
parent
119d5c35f0
commit
44ebe17c66
1 changed files with 0 additions and 34 deletions
|
|
@ -152,37 +152,3 @@ where
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fn handle <C> (&self, state: &mut T, input: &U) -> Perhaps<bool> {
|
|
||||||
//for layer in self.layers.iter() {
|
|
||||||
//if !(layer.0)(state) {
|
|
||||||
//continue
|
|
||||||
//}
|
|
||||||
//let command: Option<C> = SourceIter(layer.1).command::<_, _, _>(state, input);
|
|
||||||
//if let Some(command) = command {
|
|
||||||
//if let Some(undo) = command.execute(state)? {
|
|
||||||
////app.history.push(undo);
|
|
||||||
//}
|
|
||||||
//return Ok(Some(true))
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
//Ok(None)
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
//fn layer (mut self, keymap: &'static str) -> Self {
|
|
||||||
//self.add_layer(keymap);
|
|
||||||
//self
|
|
||||||
//}
|
|
||||||
//fn layer_if (mut self, condition: impl Fn(&T)->bool + 'static, keymap: &'static str) -> Self {
|
|
||||||
//self.add_layer_if(condition, keymap);
|
|
||||||
//self
|
|
||||||
//}
|
|
||||||
//fn add_layer (&mut self, keymap: &'static str) -> &mut Self {
|
|
||||||
//self.layers.push((Box::new(|_|true), keymap));
|
|
||||||
//self
|
|
||||||
//}
|
|
||||||
//fn add_layer_if (&mut self, condition: impl Fn(&T)->bool + 'static, keymap: &'static str) -> &mut Self {
|
|
||||||
//self.layers.push((Box::new(condition), keymap));
|
|
||||||
//self
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue