Sigil2D/scripts/frame_counter.rn

15 lines
228 B
Plaintext
Raw Permalink Normal View History

2024-03-08 11:27:53 +00:00
pub struct FrameCounter {
frame,
}
impl FrameCounter {
pub fn new() {
return FrameCounter {frame: 0};
}
pub fn update(self) {
self.frame += 1;
log::info(`Frame: ${self.frame}`);
2024-03-08 11:27:53 +00:00
}
}