1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-09-28 13:09:07 +00:00
doukutsu-rs/src/entity.rs

11 lines
299 B
Rust
Raw Normal View History

2020-08-19 19:11:32 +00:00
use crate::ggez::{Context, GameResult};
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
use crate::frame::Frame;
use crate::SharedGameState;
2020-08-18 16:46:07 +00:00
2020-09-05 02:09:52 +00:00
pub trait GameEntity<C> {
fn tick(&mut self, state: &mut SharedGameState, custom: C) -> GameResult;
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
fn draw(&self, state: &mut SharedGameState, ctx: &mut Context, frame: &Frame) -> GameResult;
2020-08-18 16:46:07 +00:00
}