separate Engine from RenderTarget

This commit is contained in:
🪞👃🪞 2024-09-15 15:44:11 +03:00
parent 60acb20a57
commit ff6751d393
4 changed files with 70 additions and 56 deletions

View file

@ -3,11 +3,11 @@ use crate::*;
struct TestEngine([u16;4], Vec<Vec<char>>);
impl Engine for TestEngine {
type Unit = u16;
type Size = [Self::Unit;2];
type Area = [Self::Unit;4];
type HandleInput = Self;
type Handled = bool;
type Unit = u16;
type Size = [Self::Unit;2];
type Area = [Self::Unit;4];
type Input = Self;
type Handled = bool;
fn exited (&self) -> bool {
true
}