mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-04 21:34:20 +00:00
11 lines
311 B
Rust
11 lines
311 B
Rust
use ggez::{Context, GameResult};
|
|
|
|
use crate::frame::Frame;
|
|
use crate::shared_game_state::SharedGameState;
|
|
|
|
pub trait GameEntity<C> {
|
|
fn tick(&mut self, state: &mut SharedGameState, custom: C) -> GameResult;
|
|
|
|
fn draw(&self, state: &mut SharedGameState, ctx: &mut Context, frame: &Frame) -> GameResult;
|
|
}
|