mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-10-03 07:48:45 +00:00
12 lines
359 B
Rust
12 lines
359 B
Rust
use crate::framework::context::Context;
|
|
use crate::framework::error::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;
|
|
}
|