Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Jan 31, 2024
1 parent 01d4a5b commit 9278ec5
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions yarge-core/src/event.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
//WIP: Event logging system
//TODO finish it and remove the "dbg-emit-ppu-events" feature

#[derive(Clone, Copy, Debug)]
pub enum Event {
PpuLxInc {
lx: u8,
ly: u8,
cycles: u16,
}
}
// #[derive(Clone, Copy, Debug)]
// pub enum Event {
// PpuLxInc {
// lx: u8,
// ly: u8,
// cycles: u16,
// }
// }

pub struct EventRecorder {
list: Vec<Event>
}
// pub struct EventRecorder {
// list: Vec<Event>
// }

// impl EventRecorder {
// #[inline]
// pub fn record(&mut self, event: Event) {
// self.list.push(event);
// }
// }

0 comments on commit 9278ec5

Please sign in to comment.