Files
Telvanni 4Life c6cc1be347 - Fixed OpenMW-CS incorrectly passing magic effect ids
- Resolved merge conflicts with !4323
- Minor refactor of affectsSkill helper function
- Removed redundant class definition
2026-01-08 14:36:38 -05:00

32 lines
633 B
C++

#ifndef OPENMW_MECHANICS_SUMMONING_H
#define OPENMW_MECHANICS_SUMMONING_H
#include <string_view>
#include <utility>
#include <components/esm3/refnum.hpp>
namespace ESM
{
class RefId;
}
namespace MWWorld
{
class Ptr;
}
namespace MWMechanics
{
bool isSummoningEffect(ESM::RefId effectId);
ESM::RefId getSummonedCreature(ESM::RefId effectId);
void purgeSummonEffect(const MWWorld::Ptr& summoner, const std::pair<ESM::RefId, ESM::RefNum>& summon);
ESM::RefNum summonCreature(ESM::RefId effectId, const MWWorld::Ptr& summoner);
void updateSummons(const MWWorld::Ptr& summoner, bool cleanup);
}
#endif