Daily update on 20221029 by Nitload Youmu
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -7,9 +7,10 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public class Create
|
||||
static public class Create
|
||||
{
|
||||
public void Geometry(IPoint center, float radius, float angle, int num)
|
||||
|
||||
public static void Geometry(IPoint center, float radius, float angle, int num)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
20221029未完成:内置的池初始化与控制
|
||||
@@ -21,8 +21,6 @@ namespace StgSharp.Logic
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void Increase(T deltaValue)
|
||||
{
|
||||
//_value += deltaValue;
|
||||
|
||||
@@ -48,8 +48,8 @@ namespace StgSharp.Logic
|
||||
|
||||
public EntityContainer()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void MoveLeft(LinkedObject target)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Logic
|
||||
{
|
||||
internal interface IContainer
|
||||
public interface IContainer
|
||||
{
|
||||
float LeftBorder { get; set; }
|
||||
|
||||
@@ -16,7 +16,11 @@ namespace StgSharp.Logic
|
||||
|
||||
float BottomBorder { get; set; }
|
||||
|
||||
|
||||
int Limit { get; set; }
|
||||
|
||||
IContainer Top { get; set; }
|
||||
IContainer Bottom { get; set; }
|
||||
IContainer Left { get; set; }
|
||||
IContainer Right { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,11 @@ namespace StgSharp.Logic
|
||||
private float _topBorder;
|
||||
private float _bottomBorder;
|
||||
|
||||
private IContainer _left;
|
||||
private IContainer _right;
|
||||
private IContainer _top;
|
||||
private IContainer _bottom;
|
||||
|
||||
private int _limit;
|
||||
|
||||
public float LeftBorder
|
||||
@@ -37,11 +42,44 @@ namespace StgSharp.Logic
|
||||
set { _bottomBorder = value; }
|
||||
}
|
||||
|
||||
public IContainer Left
|
||||
{
|
||||
get { return _left; }
|
||||
set { _left = value; }
|
||||
}
|
||||
|
||||
public IContainer Right
|
||||
{
|
||||
get { return _right; }
|
||||
set { _right = value; }
|
||||
}
|
||||
|
||||
public IContainer Top
|
||||
{
|
||||
get { return _top; }
|
||||
set { _top = value; }
|
||||
}
|
||||
|
||||
public IContainer Bottom
|
||||
{
|
||||
get { return _bottom; }
|
||||
set { _bottom = value; }
|
||||
}
|
||||
|
||||
public int Limit
|
||||
{
|
||||
get { return _limit; }
|
||||
set { _limit = value; }
|
||||
}
|
||||
|
||||
|
||||
public PointContainer(float top,float bottom,float left,float right)
|
||||
{
|
||||
_topBorder = top;
|
||||
_bottomBorder = bottom;
|
||||
_leftBorder = left;
|
||||
_rightBorder = right;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using StgSharp.Logic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Pool
|
||||
{
|
||||
public interface IPool
|
||||
{
|
||||
IContainer TopCollector { get; }
|
||||
IContainer BottomCollector { get; }
|
||||
IContainer LeftCollector { get; }
|
||||
IContainer RightCollector { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
using StgSharp.Logic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Pool
|
||||
{
|
||||
public class PointPool:IPool
|
||||
{
|
||||
|
||||
internal static IContainer _topCollector;
|
||||
internal static IContainer _bottomCollector;
|
||||
internal static IContainer _leftCollector;
|
||||
internal static IContainer _rightCollector;
|
||||
|
||||
public IContainer TopCollector
|
||||
{
|
||||
get { return _topCollector; }
|
||||
}
|
||||
|
||||
public IContainer BottomCollector
|
||||
{
|
||||
get { return _bottomCollector; }
|
||||
}
|
||||
|
||||
public IContainer LeftCollector
|
||||
{
|
||||
get { return _leftCollector; }
|
||||
}
|
||||
|
||||
public IContainer RightCollector
|
||||
{
|
||||
get { return _rightCollector; }
|
||||
}
|
||||
|
||||
static IContainer mainContainer00;
|
||||
static IContainer mainContainer01;
|
||||
static IContainer mainContainer02;
|
||||
static IContainer mainContainer10;
|
||||
static IContainer mainContainer11;
|
||||
static IContainer mainContainer12;
|
||||
static IContainer mainContainer20;
|
||||
static IContainer mainContainer21;
|
||||
static IContainer mainContainer22;
|
||||
static IContainer mainContainer30;
|
||||
static IContainer mainContainer31;
|
||||
static IContainer mainContainer32;
|
||||
|
||||
|
||||
static PointPool()
|
||||
{
|
||||
mainContainer00 = new PointContainer(1000,400,-600,-150);
|
||||
|
||||
mainContainer01 = new PointContainer(1000,400,-150,150);
|
||||
|
||||
mainContainer02 = new PointContainer(1000,400,150,600);
|
||||
|
||||
mainContainer10 = new PointContainer(400,0,-600,-150);
|
||||
|
||||
mainContainer11 = new PointContainer(400,0,-150,150);
|
||||
|
||||
mainContainer12 = new PointContainer(400,0,150,600);
|
||||
|
||||
mainContainer20 = new PointContainer(0,-400,-600,-150);
|
||||
|
||||
mainContainer21 = new PointContainer(0,-400,-150,150);
|
||||
|
||||
mainContainer22 = new PointContainer(0,-400,150,600);
|
||||
|
||||
mainContainer30 = new PointContainer(-400,-1000,-600,-150);
|
||||
|
||||
mainContainer31 = new PointContainer(-400,-1000,-150,150);
|
||||
|
||||
mainContainer32 = new PointContainer(-400,-1000,150,600);
|
||||
|
||||
mainContainer00.Top = _topCollector;
|
||||
mainContainer00.Bottom = mainContainer10;
|
||||
mainContainer00.Left = _leftCollector;
|
||||
mainContainer00.Right = mainContainer01;
|
||||
|
||||
Undo01:设置其他11个容器构成完整的池
|
||||
|
||||
}
|
||||
public static void OnRender()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,12 +50,14 @@
|
||||
<Compile Include="Control\Create.cs" />
|
||||
<Compile Include="Entity\Enemy.cs" />
|
||||
<Compile Include="Game\CoreInfo.cs" />
|
||||
<Compile Include="Entity\ComplexOperationHandler.cs" />
|
||||
<Compile Include="Control\ComplexOperationHandler.cs" />
|
||||
<Compile Include="Geometry\IGeometry.cs" />
|
||||
<Compile Include="Geometry\IPoint.cs" />
|
||||
<Compile Include="Geometry\PointCommon.cs" />
|
||||
<Compile Include="Logic\IContainer.cs" />
|
||||
<Compile Include="Logic\PointContainer.cs" />
|
||||
<Compile Include="Pool\IPool.cs" />
|
||||
<Compile Include="Pool\PointPool.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Entity\Bullet.cs" />
|
||||
<Compile Include="Entity\Player.cs" />
|
||||
@@ -71,7 +73,9 @@
|
||||
<Compile Include="Logic\LinkedObject.cs" />
|
||||
<Compile Include="UI\Option.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Content Include="Control\TextFile1.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="OpenTK.dll.config" />
|
||||
<None Include="packages.config" />
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user