Move out GameObject and components.
This commit is contained in:
@@ -3,12 +3,10 @@ use std::cell::RefCell;
|
||||
use sdl2::render::{Texture, Renderer};
|
||||
use sdl2::rect::Rect;
|
||||
|
||||
|
||||
pub trait Sprite {
|
||||
fn render(&self, f64, &mut Renderer, &Rect);
|
||||
}
|
||||
|
||||
|
||||
pub struct StaticSprite<'a> {
|
||||
texture: &'a Texture,
|
||||
x: i32,
|
||||
@@ -35,7 +33,6 @@ impl<'a> Sprite for StaticSprite<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub struct AnimatedSprite<'a> {
|
||||
texture: &'a Texture,
|
||||
x: i32,
|
||||
|
||||
Reference in New Issue
Block a user