/// Clones the instance.
    public override e2dPreset Clone()
    {
        e2dCurvePerlinPreset result = new e2dCurvePerlinPreset();

        result.Copy(this);
        return(result);
    }
예제 #2
0
    public override e2dPreset Clone()
    {
        e2dCurvePerlinPreset e2dCurvePerlinPreset = new e2dCurvePerlinPreset();

        e2dCurvePerlinPreset.Copy(this);
        return(e2dCurvePerlinPreset);
    }
예제 #3
0
    public override void Copy(e2dPreset other)
    {
        e2dCurvePerlinPreset e2dCurvePerlinPreset = (e2dCurvePerlinPreset)other;

        this.octaves          = e2dCurvePerlinPreset.octaves;
        this.frequencyPerUnit = e2dCurvePerlinPreset.frequencyPerUnit;
        this.persistence      = e2dCurvePerlinPreset.persistence;
    }
    /// Copies data from another preset. Assumes both presets are of the same kind.
    public override void Copy(e2dPreset other)
    {
        e2dCurvePerlinPreset preset = (e2dCurvePerlinPreset)other;

        octaves          = preset.octaves;
        frequencyPerUnit = preset.frequencyPerUnit;
        persistence      = preset.persistence;
    }
예제 #5
0
 /// Clones the instance.
 public override e2dPreset Clone()
 {
     e2dCurvePerlinPreset result = new e2dCurvePerlinPreset();
     result.Copy(this);
     return result;
 }