1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00
OpenMW/apps/openmw/mwmechanics/summoning.hpp
2022-08-27 13:07:59 +02:00

28 lines
566 B
C++

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