mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Figure changes
Former-commit-id: c4cfb35c950f938cb8c7f8169518333db6364ad2
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
// Crate
|
use specs::{Component, VecStorage};
|
||||||
|
use vek::*;
|
||||||
use crate::{
|
use crate::{
|
||||||
Error,
|
Error,
|
||||||
render::{
|
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>;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user