mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
36 lines
677 B
C#
36 lines
677 B
C#
using System.Collections.Generic;
|
|
using LuaInterface;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class LDEvtWaitAll : BaseLDEvent
|
|
{
|
|
private List<BaseLDEvent> _LDEventList;
|
|
|
|
public LDEvtWaitAll(LuaTable LDEventTable)
|
|
{
|
|
_LDEventList = new List<BaseLDEvent>();
|
|
foreach (object value in LDEventTable.Values)
|
|
{
|
|
BaseLDEvent item = Singleton<LevelDesignManager>.Instance.CreateLDEventFromTable((LuaTable)value);
|
|
_LDEventList.Add(item);
|
|
}
|
|
}
|
|
|
|
public override void Core()
|
|
{
|
|
foreach (BaseLDEvent lDEvent in _LDEventList)
|
|
{
|
|
if (lDEvent.isDone)
|
|
{
|
|
_LDEventList.Remove(lDEvent);
|
|
}
|
|
}
|
|
if (_LDEventList.Count == 0)
|
|
{
|
|
Done();
|
|
}
|
|
}
|
|
}
|
|
}
|