1 2 3 4 5 6 7 8 9 10 11 12
use shipyard::*; pub struct Parent { pub num_children: usize, pub first_child: EntityId, } pub struct Child { pub parent: EntityId, pub prev: EntityId, pub next: EntityId, }
1 2 3 4 5 6 7 8 9 10 11 12
use shipyard::*; pub struct Parent { pub num_children: usize, pub first_child: EntityId, } pub struct Child { pub parent: EntityId, pub prev: EntityId, pub next: EntityId, }