23 lines
461 B
C#
23 lines
461 B
C#
namespace Quadtree
|
|
{
|
|
internal struct QuadtreeItem<T>
|
|
{
|
|
/// <summary>
|
|
/// Index of the next item in the same leaf vertex.
|
|
/// </summary>
|
|
public int Next;
|
|
|
|
public T WorldObject;
|
|
|
|
public QuadtreeItem(T worldObject) : this(worldObject, -1)
|
|
{
|
|
}
|
|
|
|
public QuadtreeItem(T worldObject, int next)
|
|
{
|
|
Next = next;
|
|
WorldObject = worldObject;
|
|
}
|
|
}
|
|
}
|