mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add project files.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Microsoft.Iris.Animations.BaseVector3Keyframe
|
||||
// Assembly: UIX, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
||||
// MVID: A56C6C9D-B7F6-46A9-8BDE-B3D9B8D60B11
|
||||
// Assembly location: C:\Program Files\Zune\UIX.dll
|
||||
|
||||
using Microsoft.Iris.Render;
|
||||
|
||||
namespace Microsoft.Iris.Animations
|
||||
{
|
||||
internal abstract class BaseVector3Keyframe : BaseKeyframe
|
||||
{
|
||||
private Vector3 _valueVector;
|
||||
|
||||
protected override void PopulateAnimationWorker(
|
||||
IAnimatable targetObject,
|
||||
AnimationProxy animation,
|
||||
ref AnimationArgs args)
|
||||
{
|
||||
Vector3 effectiveValue = GetEffectiveValue(targetObject, _valueVector, ref args);
|
||||
animation.AddVector3Keyframe(this, effectiveValue);
|
||||
}
|
||||
|
||||
public Vector3 Value
|
||||
{
|
||||
get => _valueVector;
|
||||
set => _valueVector = value;
|
||||
}
|
||||
|
||||
public override object ObjectValue => Value;
|
||||
|
||||
public virtual Vector3 GetEffectiveValue(
|
||||
IAnimatable targetObject,
|
||||
Vector3 baseValueVector,
|
||||
ref AnimationArgs args)
|
||||
{
|
||||
return baseValueVector;
|
||||
}
|
||||
|
||||
public override void Apply(IAnimatableOwner animationTarget, ref AnimationArgs args)
|
||||
{
|
||||
Vector3 effectiveValue = GetEffectiveValue(animationTarget.AnimationTarget, _valueVector, ref args);
|
||||
Apply(animationTarget, effectiveValue);
|
||||
}
|
||||
|
||||
public abstract void Apply(IAnimatableOwner animationTarget, Vector3 valueVector);
|
||||
|
||||
public override void MagnifyValue(float magnifyValue) => Value *= magnifyValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user