public UshortDataLater Clone() { UshortDataLater clonedData = new UshortDataLater(); clonedData.data = (ushort[, ])data.Clone(); return(clonedData); }
public DataLayer() { NoiseLayerData = new IntDataLater(); HeightLayerData = new UshortDataLater(); WaterLayerData = new ByteDataLater(); UnnaturalDataLayer = new ByteDataLater(); }
public UshortDataLater GenerateData(WorldDimensions worldDimensions, int areaDimensions, int x, int y) { UshortDataLater layer = new UshortDataLater(); layer.data = new ushort[areaDimensions, areaDimensions]; for (int i = 0; i < areaDimensions; i++) { for (int j = 0; j < areaDimensions; j++) { layer.data[i, j] = (ushort)UnityEngine.Random.Range(50, 52); } } return(layer); }