mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
0601d7213e
This variable is only required to return empty RefId as const reference. There is no point in doing so for a type cheap to copy.
29 lines
549 B
C++
29 lines
549 B
C++
#ifndef OPENMW_MECHANICS_SUMMONING_H
|
|
#define OPENMW_MECHANICS_SUMMONING_H
|
|
|
|
#include <string_view>
|
|
#include <utility>
|
|
namespace ESM
|
|
{
|
|
class RefId;
|
|
}
|
|
namespace MWWorld
|
|
{
|
|
class Ptr;
|
|
}
|
|
|
|
namespace MWMechanics
|
|
{
|
|
bool isSummoningEffect(int effectId);
|
|
|
|
ESM::RefId 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
|