From be1b4c3447ceb847a89b2b0cf668fe81bea52292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=C3=AF=7E?= Date: Sat, 17 Aug 2024 13:12:30 +0200 Subject: [PATCH] (BREAKING) Rename AacFlSettingObjectReferenceKeyframes to AacFlSettingKeyframesObjectReference: - Breaking changes: - Rename AacFlSettingObjectReferenceKeyframes to AacFlSettingKeyframesObjectReference. - This makes it more in line with AacFlSettingKeyframesColor. - AacFlSettingObjectReferenceKeyframes was introduced specifically for Vixen, and it is meant to be used as a lambda expression, so the breaking damage should be limited. --- .../V1/Editor/AacFlAnimations.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs b/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs index 3e17251..ada80bf 100644 --- a/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs +++ b/Packages/dev.hai-vr.animator-as-code.v1/V1/Editor/AacFlAnimations.cs @@ -538,16 +538,16 @@ namespace AnimatorAsCode.V1 /// Obsolete. Use `WithUnit()` instead.
/// Start defining the keyframes with a lambda expression, expressing the unit. [Obsolete("This function was renamed to WithUnit(...)")] - public void WithKeyframes(AacFlUnit unit, Action action) + public void WithKeyframes(AacFlUnit unit, Action action) { WithUnit(unit, action); } /// Start defining the keyframes with a lambda expression, expressing the unit. - public void WithUnit(AacFlUnit unit, Action action) + public void WithUnit(AacFlUnit unit, Action action) { var mutatedObjectReferenceKeyframes = new List(); - var builder = new AacFlSettingObjectReferenceKeyframes(unit, mutatedObjectReferenceKeyframes); + var builder = new AacFlSettingKeyframesObjectReference(unit, mutatedObjectReferenceKeyframes); action.Invoke(builder); foreach (var binding in _bindings) @@ -557,19 +557,19 @@ namespace AnimatorAsCode.V1 } } - public class AacFlSettingObjectReferenceKeyframes + public class AacFlSettingKeyframesObjectReference { private readonly AacFlUnit _unit; private readonly List _mutatedKeyframes; - public AacFlSettingObjectReferenceKeyframes(AacFlUnit unit, List mutatedKeyframes) + public AacFlSettingKeyframesObjectReference(AacFlUnit unit, List mutatedKeyframes) { _unit = unit; _mutatedKeyframes = mutatedKeyframes; } /// Create a keyframe for an object reference. The unit is defined by the function that invokes this lambda expression. - public AacFlSettingObjectReferenceKeyframes Setting(int timeInUnit, Object value) + public AacFlSettingKeyframesObjectReference Setting(int timeInUnit, Object value) { _mutatedKeyframes.Add(new ObjectReferenceKeyframe { time = AsSeconds(timeInUnit), value = value });