public class Grid
Inherits [IEnumerable<(int X, int Y, T Value)>
](https://docs.unity3d.com/2020.3/Documentation/ScriptReference/IEnumerable<(int X, int Y, T Value)>.html)
No description provided
Fields
public readonly int Height
No description provided
public T[] Flat
No description provided
Methods
public (constructor) Grid(int width, int height)
No description provided
public (constructor) Grid(int width, int height, T[] flat)
No description provided
public T Get(int x, int y)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public bool TryGet(int x, int y, out T cell)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public void Set(int x, int y, T value)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public IEnumerator<(int X, int Y, T Value)> GetEnumerator()
No description provided
public bool BlockEquals(Grid<T> block, int top = 0, int left = 0)
No description provided
public void WriteBlock(Grid<T> block, int top, int left)
No description provided
public int GetIndexFrom(int x, int y)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public static int IndexFromCoordinates(int x, int y, int w)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public static T GetAt(T[] flat, int x, int y, int w)
No description provided
public static void SetAt(T[] flat, int x, int y, int w, T val)
No description provided
public void GetCoordinatesFromIndex(int index, out int x, out int y)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
public static void GetCoordinatesFromIndex(int index, int w, out int x, out int y)
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
No description provided
IEnumerator GetEnumerator()
No description provided