MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / mapSkill

Method mapSkill

source/game/SkillManager.cpp:214–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 }
213
214 void mapSkill(std::vector<std::vector<SkillType>>& skillsFamily) const
215 {
216 uint32_t index = static_cast<uint32_t>(SkillFamily::spells);
217 std::vector<SkillType>& family = skillsFamily[index];
218 index = static_cast<uint32_t>(mSpellType);
219 if(index >= family.size())
220 {
221 OD_LOG_ERR("wrong index=" + Helper::toString(index) + ", size=" + Helper::toString(family.size()));
222 return;
223 }
224 family[index] = mSkill->getType();
225 }
226
227 SpellType mSpellType;
228};

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
getTypeMethod · 0.45

Tested by

no test coverage detected