Added third block type and textures.

This commit is contained in:
2017-02-26 22:27:03 -05:00
parent 02a9a6d662
commit df6965c003
8 changed files with 140 additions and 64 deletions

View File

@@ -13,19 +13,13 @@ namespace Diamond.Buffers
public int Offset;
public int Length;
public T this[int i]
public ref T this[int i]
{
get
{
if (i < 0 || i >= Length)
throw new IndexOutOfRangeException("Index out of bounds of subarray");
return Array[i + Offset];
}
set
{
if (i < 0 || i >= Length)
throw new IndexOutOfRangeException("Index out of bounds of subarray.");
Array[i + Offset] = value;
return ref Array[i + Offset];
}
}