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