Exemple #1
0
 public ReadOnlyNibbleArray(NibbleArray array)
 {
     NibbleArray = array;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new section at the given Y location.
 /// </summary>
 /// <param name="y">The location of the section in relative coordinates.</param>
 public Section(byte y)
 {
     this.Y = y;
     Blocks = new byte[Width*Height*Depth];
     Metadata = new NibbleArray(Width*Height*Depth);
     BlockLight = new NibbleArray(Width*Height*Depth);
     SkyLight = new NibbleArray(Width*Height*Depth);
     nonAirCount = 0;
 }