(&mut self, card: Suite, pos: Point2, z: f32, ani: Animation)
| 136 | } |
| 137 | |
| 138 | pub fn animate(&mut self, card: Suite, pos: Point2, z: f32, ani: Animation) { |
| 139 | let mut stack = Stack::new(StackRole::Animation); |
| 140 | stack.push_card(card); |
| 141 | |
| 142 | self.new_entity() |
| 143 | .with_position(pos) |
| 144 | .with_zorder(z) |
| 145 | .with_animation(ani) |
| 146 | .with_stack(stack) |
| 147 | .build(); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | pub struct EntityBuilder<'a> { |
no test coverage detected