Anonymous

Module:FunList/Iterators: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 25: Line 25:
-- Hooks the moveNext function into the Lua 'pairs' function
-- Hooks the moveNext function into the Lua 'pairs' function
function Enumerator:overridePairs()
function Enumerator:overridePairs()
mw.log('overriding pairs')
self.index = nil
self.index = nil
self.current = nil
self.current = nil
Line 94: Line 95:


function SelectEnumerator:moveNext()
function SelectEnumerator:moveNext()
mw.log('select movenext')
if self.state == 0 then
if self.state == 0 then
self.state = 1
self.state = 1
2,875

edits