bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/e2dCurveVoronoiPreset.cs

38 lines
902 B
C#
Raw Normal View History

2024-02-24 22:40:44 -05:00
using System;
[Serializable]
public class e2dCurveVoronoiPreset : e2dPreset
{
public e2dVoronoiPeakType peakType;
public float frequencyPerUnit;
public float peakRatio;
public float peakWidth;
public bool usePeaks;
public override void Copy(e2dPreset other)
{
e2dCurveVoronoiPreset e2dCurveVoronoiPreset2 = (e2dCurveVoronoiPreset)other;
peakType = e2dCurveVoronoiPreset2.peakType;
frequencyPerUnit = e2dCurveVoronoiPreset2.frequencyPerUnit;
peakRatio = e2dCurveVoronoiPreset2.peakRatio;
peakWidth = e2dCurveVoronoiPreset2.peakWidth;
usePeaks = e2dCurveVoronoiPreset2.usePeaks;
}
public override void UpdateValues(e2dTerrainGenerator generator)
{
generator.Voronoi.Copy(this);
}
public override e2dPreset Clone()
{
e2dCurveVoronoiPreset e2dCurveVoronoiPreset2 = new e2dCurveVoronoiPreset();
e2dCurveVoronoiPreset2.Copy(this);
return e2dCurveVoronoiPreset2;
}
}