mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-02 07:21:07 +00:00
Add missing sol::is_automagical : std::false_type
in magicbindings.cpp
This commit is contained in:
parent
2e45c80ac2
commit
d1d1a280d0
@ -23,6 +23,39 @@
|
|||||||
#include "objectvariant.hpp"
|
#include "objectvariant.hpp"
|
||||||
#include "worldview.hpp"
|
#include "worldview.hpp"
|
||||||
|
|
||||||
|
namespace MWLua
|
||||||
|
{
|
||||||
|
// class returned via 'types.Actor.spells(obj)' in Lua
|
||||||
|
struct ActorSpells
|
||||||
|
{
|
||||||
|
const ObjectVariant mActor;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace sol
|
||||||
|
{
|
||||||
|
template <typename T>
|
||||||
|
struct is_automagical<typename MWWorld::Store<T>> : std::false_type
|
||||||
|
{
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct is_automagical<ESM::Spell> : std::false_type
|
||||||
|
{
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct is_automagical<ESM::ENAMstruct> : std::false_type
|
||||||
|
{
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct is_automagical<ESM::MagicEffect> : std::false_type
|
||||||
|
{
|
||||||
|
};
|
||||||
|
template <>
|
||||||
|
struct is_automagical<MWLua::ActorSpells> : std::false_type
|
||||||
|
{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
namespace MWLua
|
namespace MWLua
|
||||||
{
|
{
|
||||||
sol::table initCoreMagicBindings(const Context& context)
|
sol::table initCoreMagicBindings(const Context& context)
|
||||||
@ -182,12 +215,6 @@ namespace MWLua
|
|||||||
return LuaUtil::makeReadOnly(magicApi);
|
return LuaUtil::makeReadOnly(magicApi);
|
||||||
}
|
}
|
||||||
|
|
||||||
// class returned via 'types.Actor.spells(obj)' in Lua
|
|
||||||
struct ActorSpells
|
|
||||||
{
|
|
||||||
const ObjectVariant mActor;
|
|
||||||
};
|
|
||||||
|
|
||||||
void addActorMagicBindings(sol::table& actor, const Context& context)
|
void addActorMagicBindings(sol::table& actor, const Context& context)
|
||||||
{
|
{
|
||||||
const MWWorld::Store<ESM::Spell>* spellStore
|
const MWWorld::Store<ESM::Spell>* spellStore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user