daily update on 20221114 by nitload youmu

This commit is contained in:
Nitload
2022-11-15 01:05:45 +08:00
parent 63a5fa5562
commit 5c50789568
11 changed files with 68 additions and 1 deletions
@@ -0,0 +1,53 @@
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;
}
}
}
@@ -0,0 +1,12 @@
using StgSharp.Geometries;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Control
{
public delegate bool SelectOperation<T>(T p)where T : LinkedObject ;
}
@@ -45,6 +45,8 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Control\SelectOperation.cs" />
<Compile Include="Control\Get.cs" />
<Compile Include="Control\Set.cs" /> <Compile Include="Control\Set.cs" />
<Compile Include="Control\Pool.cs" /> <Compile Include="Control\Pool.cs" />
<Compile Include="Control\Create.cs" /> <Compile Include="Control\Create.cs" />
@@ -53,7 +55,7 @@
<Compile Include="Entities\Reward.cs" /> <Compile Include="Entities\Reward.cs" />
<Compile Include="Entities\Enemy.cs" /> <Compile Include="Entities\Enemy.cs" />
<Compile Include="Game\CoreInfo.cs" /> <Compile Include="Game\CoreInfo.cs" />
<Compile Include="Control\ComplexOperationHandler.cs" /> <Compile Include="Geometries\ComplexOperationHandler.cs" />
<Compile Include="Geometries\Geometry.cs" /> <Compile Include="Geometries\Geometry.cs" />
<Compile Include="Geometries\FreeCurve.cs" /> <Compile Include="Geometries\FreeCurve.cs" />
<Compile Include="Geometries\Point.cs" /> <Compile Include="Geometries\Point.cs" />