2015-01-05 18:52:37 +01:00
|
|
|
#ifndef OPENMW_MECHANICS_SUMMONING_H
|
|
|
|
#define OPENMW_MECHANICS_SUMMONING_H
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2020-08-28 22:43:22 +04:00
|
|
|
#include <components/esm/magiceffects.hpp>
|
|
|
|
|
2016-06-17 23:07:16 +09:00
|
|
|
#include "magiceffects.hpp"
|
|
|
|
|
2015-01-05 18:52:37 +01:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
2020-04-04 17:45:03 +03:00
|
|
|
bool isSummoningEffect(int effectId);
|
|
|
|
|
2020-04-04 16:27:00 +03:00
|
|
|
std::string getSummonedCreature(int effectId);
|
|
|
|
|
2021-08-27 20:07:50 +02:00
|
|
|
void purgeSummonEffect(const MWWorld::Ptr& summoner, const std::pair<int, int>& summon);
|
2015-01-05 18:52:37 +01:00
|
|
|
|
2021-08-27 20:07:50 +02:00
|
|
|
int summonCreature(int effectId, const MWWorld::Ptr& summoner);
|
2015-01-05 18:52:37 +01:00
|
|
|
|
2021-08-27 20:07:50 +02:00
|
|
|
void updateSummons(const MWWorld::Ptr& summoner, bool cleanup);
|
2015-01-05 18:52:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|