Skip to content

Commit 4319e32

Browse files
authored
Merge pull request UnderminersTeam#2210 from misternebula/patch-2
Update AnimCurve documentation and CurveType enum.
2 parents 5f3f8c2 + a6c13b0 commit 4319e32

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

UndertaleModLib/Models/UndertaleAnimationCurve.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ public enum CurveType : uint
133133
/// <summary>
134134
/// Creates a smooth progression between points using catmull-rom interpolation.
135135
/// </summary>
136-
Smooth = 1
137-
// TODO: What about bezier?
136+
Smooth = 1,
137+
/// <summary>
138+
/// Creates a curved progression by using points as the control points of a 2D Bézier curve.
139+
/// </summary>
140+
Bezier = 2
138141
}
139142

140143
/// <inheritdoc />
@@ -146,7 +149,7 @@ public enum CurveType : uint
146149
public CurveType Curve { get; set; }
147150

148151
/// <summary>
149-
/// TODO: document this
152+
/// The amount of resolution generated between control points in both Catmull-Rom (smooth) and Bezier interpolation.
150153
/// </summary>
151154
public uint Iterations { get; set; }
152155

@@ -292,4 +295,4 @@ public void Unserialize(UndertaleReader reader)
292295
}
293296
}
294297
}
295-
}
298+
}

0 commit comments

Comments
 (0)