daily update on 20230120 by nitload youmu, struct of project fixed, math lib created
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user