| 122 | } |
| 123 | |
| 124 | void mapSkill(std::vector<std::vector<SkillType>>& skillsFamily) const |
| 125 | { |
| 126 | uint32_t index = static_cast<uint32_t>(SkillFamily::rooms); |
| 127 | std::vector<SkillType>& family = skillsFamily[index]; |
| 128 | index = static_cast<uint32_t>(mRoomType); |
| 129 | if(index >= family.size()) |
| 130 | { |
| 131 | OD_LOG_ERR("wrong index=" + Helper::toString(index) + ", size=" + Helper::toString(family.size())); |
| 132 | return; |
| 133 | } |
| 134 | family[index] = mSkill->getType(); |
| 135 | } |
| 136 | |
| 137 | RoomType mRoomType; |
| 138 | }; |
no test coverage detected