using System.Collections.Generic; using LuaInterface; namespace MoleMole { public class LDEvtWaitAny : BaseLDEvent { private List _LDEventList; public LDEvtWaitAny(LuaTable LDEventTable) { _LDEventList = new List(); foreach (object value in LDEventTable.Values) { BaseLDEvent item = Singleton.Instance.CreateLDEventFromTable((LuaTable)value); _LDEventList.Add(item); } } public override void Core() { bool flag = false; foreach (BaseLDEvent lDEvent in _LDEventList) { if (lDEvent.isDone) { flag = true; break; } } if (!flag) { return; } foreach (BaseLDEvent lDEvent2 in _LDEventList) { lDEvent2.Done(); } Done(); } } }