Figure changes

Former-commit-id: c4cfb35c950f938cb8c7f8169518333db6364ad2
This commit is contained in:
Joshua Barretto 2019-03-19 11:35:12 +00:00
parent 8a0adab381
commit e2f75c118e

View File

@ -1,4 +1,5 @@
// Crate
use specs::{Component, VecStorage};
use vek::*;
use crate::{
Error,
render::{
@ -77,3 +78,15 @@ impl<S: Skeleton> Figure<S> {
);
}
}
#[derive(Copy, Clone, Debug)]
pub struct Figure<S: Skeleton> {
bone_consts: Consts<FigureBoneData>,
locals: Consts<FigureLocals>,
skeleton: S,
}
impl<S: Skeleton> Component for Figure<S> {
type Storage = VecStorage<Self>;
}