| 126 | } |
| 127 | |
| 128 | int MonsterBase::GetAnimation( const AnimationId id ) const |
| 129 | { |
| 130 | PC_ASSERT( monster_id_ < game_resources_->monsters_models.size() ); |
| 131 | const Model& model= game_resources_->monsters_models[ monster_id_ ]; |
| 132 | |
| 133 | for( const Model::Animation& animation : model.animations ) |
| 134 | { |
| 135 | if( animation.id == static_cast<unsigned int>(id) ) |
| 136 | return &animation - model.animations.data(); |
| 137 | } |
| 138 | return -1; |
| 139 | } |
| 140 | |
| 141 | int MonsterBase::GetAnyAnimation( const std::initializer_list<AnimationId>& ids ) const |
| 142 | { |
nothing calls this directly
no outgoing calls
no test coverage detected