Files
stgsharp/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Get.cs
T

54 lines
1.2 KiB
C#

using StgSharp.Entities;
using StgSharp.Geometries;
using StgSharp.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Control
{
internal class Get
{
static bool isNotSelected;
static Point pointCache;
static Circle circleCache;
public static Point Point(SelectOperation<Point> selectPointOperation )
{
isNotSelected = true;
pointCache = Pool.pointContainer.Heading;
for (; pointCache.Next != null; )
{
if (selectPointOperation.Invoke(pointCache))
{
isNotSelected = false;
return pointCache;
break;
}
pointCache++;
}
if (isNotSelected)
{
return null;
}
}
public static Bullet Bullet(SelectOperation<Bullet> operation)
{
}
public static Circle Circle(SelectOperation<Circle> operation)
{
circleCache = Pool.geometryContainer.Heading;
}
}
}