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

32 lines
757 B
C#
Raw Normal View History

2024-02-24 22:40:44 -05:00
using System;
[Serializable]
public class e2dCurveMidpointPreset : e2dPreset
{
public float frequencyPerUnit;
public float roughness;
public bool usePeaks;
public override void Copy(e2dPreset other)
{
e2dCurveMidpointPreset e2dCurveMidpointPreset2 = (e2dCurveMidpointPreset)other;
frequencyPerUnit = e2dCurveMidpointPreset2.frequencyPerUnit;
roughness = e2dCurveMidpointPreset2.roughness;
usePeaks = e2dCurveMidpointPreset2.usePeaks;
}
public override void UpdateValues(e2dTerrainGenerator generator)
{
generator.Midpoint.Copy(this);
}
public override e2dPreset Clone()
{
e2dCurveMidpointPreset e2dCurveMidpointPreset2 = new e2dCurveMidpointPreset();
e2dCurveMidpointPreset2.Copy(this);
return e2dCurveMidpointPreset2;
}
}