1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-20 19:21:13 +00:00

ESM::Dialogue Lua bindings 5

This commit is contained in:
trav5 2024-04-20 17:44:36 +02:00
parent 3bb7bf1a4a
commit 1e36b17679

View File

@ -38,6 +38,8 @@ namespace
DecoratedIterator mIter;
public:
using difference_type = DecoratedIterator::difference_type;
FilteredDialogueIterator(const DecoratedIterator& decoratedIterator)
: mIter{ decoratedIterator }
{
@ -93,7 +95,7 @@ namespace
size_t getSize() const
{
return std::count_if(
mDialogueStore.begin(), mDialogueStore.end(), [this](const auto& d) { return d.mType == filter; });
mDialogueStore.begin(), mDialogueStore.end(), [](const auto& d) { return d.mType == filter; });
}
iterator begin() const
@ -381,7 +383,6 @@ namespace sol
namespace MWLua
{
sol::table initCoreDialogueBindings(const Context& context)
{
sol::state_view& lua = context.mLua->sol();