mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
ESM::Dialogue Lua bindings 5
This commit is contained in:
parent
3bb7bf1a4a
commit
1e36b17679
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,8 @@ namespace
|
||||||
DecoratedIterator mIter;
|
DecoratedIterator mIter;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
using difference_type = DecoratedIterator::difference_type;
|
||||||
|
|
||||||
FilteredDialogueIterator(const DecoratedIterator& decoratedIterator)
|
FilteredDialogueIterator(const DecoratedIterator& decoratedIterator)
|
||||||
: mIter{ decoratedIterator }
|
: mIter{ decoratedIterator }
|
||||||
{
|
{
|
||||||
|
@ -93,7 +95,7 @@ namespace
|
||||||
size_t getSize() const
|
size_t getSize() const
|
||||||
{
|
{
|
||||||
return std::count_if(
|
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
|
iterator begin() const
|
||||||
|
@ -381,7 +383,6 @@ namespace sol
|
||||||
|
|
||||||
namespace MWLua
|
namespace MWLua
|
||||||
{
|
{
|
||||||
|
|
||||||
sol::table initCoreDialogueBindings(const Context& context)
|
sol::table initCoreDialogueBindings(const Context& context)
|
||||||
{
|
{
|
||||||
sol::state_view& lua = context.mLua->sol();
|
sol::state_view& lua = context.mLua->sol();
|
||||||
|
|
Loading…
Reference in a new issue