public object Call(ScriptObject[] args) { if (m_Enumerator.MoveNext()) { return(m_Enumerator.Current); } return(null); }
public object Call(ScriptObject[] args) { if (m_Enumerator.MoveNext()) { ScriptTable table = m_Script.CreateTable(); table.SetValue("key", m_Script.CreateObject(m_Index++)); table.SetValue("value", m_Enumerator.Current); return(table); } return(null); }