mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-09-28 21:19:24 +00:00
11 lines
297 B
Rust
11 lines
297 B
Rust
|
use ggez::{Context, GameResult};
|
||
|
|
||
|
use crate::frame::Frame;
|
||
|
use crate::SharedGameState;
|
||
|
|
||
|
pub trait GameEntity {
|
||
|
fn tick(&mut self, state: &mut SharedGameState, ctx: &mut Context) -> GameResult;
|
||
|
|
||
|
fn draw(&self, state: &mut SharedGameState, ctx: &mut Context, frame: &Frame) -> GameResult;
|
||
|
}
|