1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use std::collections::HashMap; use rask_engine::math::Vec2; pub struct Character<'a> { root: Bone, bones: HashMap<&'a str, Bone>, animations: HashMap<&'a str, Animation>, } struct Bone { pos: Vec2, transform: Transform, } struct Animation {} struct Transform {}