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

11 lines
297 B
Rust
Raw Normal View History

2020-08-18 16:46:07 +00:00
use ggez::{Context, GameResult};
2020-08-19 13:11:34 +00:00
use crate::frame::Frame;
use crate::SharedGameState;
2020-08-18 16:46:07 +00:00
pub trait GameEntity {
2020-08-19 13:11:34 +00:00
fn tick(&mut self, state: &mut SharedGameState, ctx: &mut Context) -> 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
}