Beispiel #1
0
 /// <summary>
 /// Creates a new Chunk within the specified <see cref="Craft.Net.Data.Region"/>
 /// at the specified location.
 /// </summary>
 public Chunk(Vector3 relativePosition, Region parentRegion)
 {
     Sections = new Section[16];
     for (int i = 0; i < Sections.Length; i++)
         Sections[i] = new Section((byte)i);
     RelativePosition = relativePosition;
     Biomes = new byte[Width * Depth];
     HeightMap = new int[Width * Depth];
     ParentRegion = parentRegion;
     IsModified = false;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new Chunk within the specified <see cref="Craft.Net.Data.Region"/>
 /// at the specified location.
 /// </summary>
 public Chunk(Vector3 relativePosition, Region parentRegion) : this(relativePosition)
 {
     ParentRegion = parentRegion;
     IsModified = false;
 }