Table of Contents

Class PointList<TPoint>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

An implementation of IList for grid points that is safe to use with the AOT compiler.

[Version(1, 6, 0)]
public class PointList<TPoint> : IList<TPoint>, ICollection<TPoint>, IEnumerable<TPoint>, IEnumerable

Type Parameters

TPoint
Inheritance
PointList<TPoint>
Implements
IList<TPoint>
ICollection<TPoint>
IEnumerable<TPoint>
Inherited Members
Extension Methods

Constructors

PointList()

public PointList()

PointList(IEnumerable<TPoint>)

public PointList(IEnumerable<TPoint> collection)

Parameters

collection IEnumerable<TPoint>

PointList(int)

public PointList(int capacity)

Parameters

capacity int

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

public TPoint this[int index] { get; set; }

Parameters

index int

Property Value

TPoint

Methods

Add(TPoint)

public void Add(TPoint point)

Parameters

point TPoint

Clear()

public void Clear()

Contains(TPoint)

public bool Contains(TPoint point)

Parameters

point TPoint

Returns

bool

CopyTo(TPoint[], int)

public void CopyTo(TPoint[] array, int arrayIndex)

Parameters

array TPoint[]
arrayIndex int

GetEnumerator()

public IEnumerator<TPoint> GetEnumerator()

Returns

IEnumerator<TPoint>

IndexOf(TPoint)

public int IndexOf(TPoint point)

Parameters

point TPoint

Returns

int

Insert(int, TPoint)

public void Insert(int index, TPoint point)

Parameters

index int
point TPoint

LastIndexOf(TPoint)

public int LastIndexOf(TPoint point)

Parameters

point TPoint

Returns

int

Remove(TPoint)

public bool Remove(TPoint point)

Parameters

point TPoint

Returns

bool

RemoveAll(Predicate<TPoint>)

public void RemoveAll(Predicate<TPoint> match)

Parameters

match Predicate<TPoint>

RemoveAllBut(Predicate<TPoint>)

Removes all the elements in the list that does not satisfy the predicate.

public void RemoveAllBut(Predicate<TPoint> match)

Parameters

match Predicate<TPoint>

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int