| 43 | } |
| 44 | |
| 45 | void SpellManager::registerFactory(const SpellFactory* factory) |
| 46 | { |
| 47 | std::vector<const SpellFactory*>& factories = getFactories(); |
| 48 | uint32_t index = static_cast<uint32_t>(factory->getSpellType()); |
| 49 | if(index >= factories.size()) |
| 50 | { |
| 51 | OD_LOG_ERR("type=" + Helper::toString(index) + ", factories.size=" + Helper::toString(factories.size())); |
| 52 | return; |
| 53 | } |
| 54 | |
| 55 | factories[index] = factory; |
| 56 | } |
| 57 | |
| 58 | void SpellManager::unregisterFactory(const SpellFactory* factory) |
| 59 | { |
nothing calls this directly
no test coverage detected