daily update on 20230322 by nitload youmu, new geometry structure rewritten 70%

This commit is contained in:
Nitload
2023-03-22 20:32:17 +08:00
parent db2ca36fd7
commit eedab82f6e
66 changed files with 1382 additions and 785 deletions
@@ -49,5 +49,13 @@ namespace StgSharp
get { return _value; }
}
public void Remove()
{
_previous.Next = _next;
_next.Previous = _previous;
_next = default(ContainerNode<T>);
_previous = default(ContainerNode<T>);
}
}
}
-14
View File
@@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
public class Dictionary<T> where T : Enum ,INode
{
internal ContainerNode<T> _indexHead;
internal ContainerNode<T> _indexTail;
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Text;
namespace StgSharp
{
public class LinkedList<T>:IEnumerable where T: INode
public class LinkedList<T>:IEnumerable where T: INode<T>
{
internal readonly ContainerNode<T> _heading;
internal ContainerNode<T> _first;
@@ -5,7 +5,7 @@ using System.Text;
namespace StgSharp.Logic
{
internal class LinkedListEnumrator<T> : IEnumerator where T : INode
internal class LinkedListEnumrator<T> : IEnumerator where T : INode<T>
{
private LinkedList<T> _target;
ContainerNode<T> enumrator;
+10 -2
View File
@@ -1,4 +1,5 @@
using StgSharp;
using StgSharp.Entities;
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
@@ -10,20 +11,27 @@ namespace StgSharp
{
public LinkedList<Point> pointContainer;
public LinkedList<IGeometry> geometryContainer;
public LinkedList<Sensor<INode>> sensorContainer;
public LinkedList<Entity> _bulletContainer;
public LinkedList<Entity> _awardContainer;
public LinkedList<Entity> _enemyContainer;
public Line leftBoader;
public Line rightBoader;
public Line topBoader;
public Line bottomBoader;
internal Sensor<EntityPartical> Sensor;
public Pool()
{
}
public void OnRender()
{
foreach (Enemy e in _enemyContainer)
{
}
}
}