| 381 | } |
| 382 | |
| 383 | void Animation::reset() noexcept |
| 384 | { |
| 385 | Debug::Log->trace("<Animation> Resetting Animation '{}'", m_name); |
| 386 | for (auto& group : m_groups) |
| 387 | { |
| 388 | group.second->reset(); |
| 389 | } |
| 390 | m_status = AnimationStatus::Play; |
| 391 | m_codeIndex = 0; |
| 392 | m_feedInstructions = true; |
| 393 | m_over = false; |
| 394 | } |
| 395 | |
| 396 | const Graphics::Texture& Animation::getTextureAtIndex(int index) |
| 397 | { |
no test coverage detected