daily update on 20230120 by nitload youmu, struct of project fixed, math lib created

This commit is contained in:
Nitload
2023-01-20 00:45:19 +08:00
parent e9116ca11b
commit c14b7ae7f8
50 changed files with 202 additions and 159 deletions
+7 -7
View File
@@ -2,19 +2,19 @@
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Logic
namespace StgSharp
{
public class LinkedList<T> where T: INode
{
internal ContainerNode<T> _head;
internal ContainerNode<T> _first;
internal ContainerNode<T> _tail;
private ContainerNode<T> _cache;
public T Head
public T First
{
get { return _head._this; }
set { _head = new ContainerNode<T>(value); }
get { return _first._this; }
set { _first = new ContainerNode<T>(value); }
}
public T Tail
@@ -26,9 +26,9 @@ namespace StgSharp.Logic
public void Add(T t)
{
if (_head != default(ContainerNode<T>))
if (_first != default(ContainerNode<T>))
{
Head = t;
First = t;
}
else
{