using System; using System.Collections.Generic; using System.Text; namespace Thousandto.Core.Base { public static class SimplePoolSweeper { static List _sweepActionList = new List(); public static void Sweep() { for (int i = 0; i < _sweepActionList.Count; ++i) { _sweepActionList[i](); } } public static void Register(MyAction sweepAction) { _sweepActionList.Add(sweepAction); } } }