172 lines
6.0 KiB
C#
172 lines
6.0 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Playables;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine.Animations
|
|
{
|
|
// Token: 0x020001F2 RID: 498
|
|
[RequiredByNativeCode]
|
|
public struct AnimationClipPlayable : IPlayable, IEquatable<AnimationClipPlayable>
|
|
{
|
|
// Token: 0x060022D5 RID: 8917 RVA: 0x00028640 File Offset: 0x00026840
|
|
internal AnimationClipPlayable(PlayableHandle handle)
|
|
{
|
|
if (handle.IsValid())
|
|
{
|
|
if (!handle.IsPlayableOfType<AnimationClipPlayable>())
|
|
{
|
|
throw new InvalidCastException("Can't set handle: the playable is not an AnimationClipPlayable.");
|
|
}
|
|
}
|
|
this.m_Handle = handle;
|
|
}
|
|
|
|
// Token: 0x060022D6 RID: 8918 RVA: 0x00028670 File Offset: 0x00026870
|
|
public static AnimationClipPlayable Create(PlayableGraph graph, AnimationClip clip)
|
|
{
|
|
PlayableHandle playableHandle = AnimationClipPlayable.CreateHandle(graph, clip);
|
|
return new AnimationClipPlayable(playableHandle);
|
|
}
|
|
|
|
// Token: 0x060022D7 RID: 8919 RVA: 0x00028694 File Offset: 0x00026894
|
|
private static PlayableHandle CreateHandle(PlayableGraph graph, AnimationClip clip)
|
|
{
|
|
PlayableHandle @null = PlayableHandle.Null;
|
|
PlayableHandle playableHandle;
|
|
if (!AnimationClipPlayable.CreateHandleInternal(graph, clip, ref @null))
|
|
{
|
|
playableHandle = PlayableHandle.Null;
|
|
}
|
|
else
|
|
{
|
|
playableHandle = @null;
|
|
}
|
|
return playableHandle;
|
|
}
|
|
|
|
// Token: 0x060022D8 RID: 8920 RVA: 0x000286CC File Offset: 0x000268CC
|
|
public PlayableHandle GetHandle()
|
|
{
|
|
return this.m_Handle;
|
|
}
|
|
|
|
// Token: 0x060022D9 RID: 8921 RVA: 0x000286E8 File Offset: 0x000268E8
|
|
public static implicit operator Playable(AnimationClipPlayable playable)
|
|
{
|
|
return new Playable(playable.GetHandle());
|
|
}
|
|
|
|
// Token: 0x060022DA RID: 8922 RVA: 0x0002870C File Offset: 0x0002690C
|
|
public static explicit operator AnimationClipPlayable(Playable playable)
|
|
{
|
|
return new AnimationClipPlayable(playable.GetHandle());
|
|
}
|
|
|
|
// Token: 0x060022DB RID: 8923 RVA: 0x00028730 File Offset: 0x00026930
|
|
public bool Equals(AnimationClipPlayable other)
|
|
{
|
|
return this.GetHandle() == other.GetHandle();
|
|
}
|
|
|
|
// Token: 0x060022DC RID: 8924 RVA: 0x00028758 File Offset: 0x00026958
|
|
private static bool CreateHandleInternal(PlayableGraph graph, AnimationClip clip, ref PlayableHandle handle)
|
|
{
|
|
return AnimationClipPlayable.INTERNAL_CALL_CreateHandleInternal(ref graph, clip, ref handle);
|
|
}
|
|
|
|
// Token: 0x060022DD RID: 8925
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_CreateHandleInternal(ref PlayableGraph graph, AnimationClip clip, ref PlayableHandle handle);
|
|
|
|
// Token: 0x060022DE RID: 8926 RVA: 0x00028778 File Offset: 0x00026978
|
|
public AnimationClip GetAnimationClip()
|
|
{
|
|
return AnimationClipPlayable.GetAnimationClipInternal(ref this.m_Handle);
|
|
}
|
|
|
|
// Token: 0x060022DF RID: 8927 RVA: 0x00028798 File Offset: 0x00026998
|
|
public bool GetApplyFootIK()
|
|
{
|
|
return AnimationClipPlayable.GetApplyFootIKInternal(ref this.m_Handle);
|
|
}
|
|
|
|
// Token: 0x060022E0 RID: 8928 RVA: 0x000287B8 File Offset: 0x000269B8
|
|
public void SetApplyFootIK(bool value)
|
|
{
|
|
AnimationClipPlayable.SetApplyFootIKInternal(ref this.m_Handle, value);
|
|
}
|
|
|
|
// Token: 0x060022E1 RID: 8929 RVA: 0x000287C8 File Offset: 0x000269C8
|
|
internal bool GetRemoveStartOffset()
|
|
{
|
|
return AnimationClipPlayable.GetRemoveStartOffsetInternal(ref this.m_Handle);
|
|
}
|
|
|
|
// Token: 0x060022E2 RID: 8930 RVA: 0x000287E8 File Offset: 0x000269E8
|
|
internal void SetRemoveStartOffset(bool value)
|
|
{
|
|
AnimationClipPlayable.SetRemoveStartOffsetInternal(ref this.m_Handle, value);
|
|
}
|
|
|
|
// Token: 0x060022E3 RID: 8931 RVA: 0x000287F8 File Offset: 0x000269F8
|
|
private static AnimationClip GetAnimationClipInternal(ref PlayableHandle handle)
|
|
{
|
|
return AnimationClipPlayable.INTERNAL_CALL_GetAnimationClipInternal(ref handle);
|
|
}
|
|
|
|
// Token: 0x060022E4 RID: 8932
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern AnimationClip INTERNAL_CALL_GetAnimationClipInternal(ref PlayableHandle handle);
|
|
|
|
// Token: 0x060022E5 RID: 8933 RVA: 0x00028814 File Offset: 0x00026A14
|
|
private static bool GetApplyFootIKInternal(ref PlayableHandle handle)
|
|
{
|
|
return AnimationClipPlayable.INTERNAL_CALL_GetApplyFootIKInternal(ref handle);
|
|
}
|
|
|
|
// Token: 0x060022E6 RID: 8934
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_GetApplyFootIKInternal(ref PlayableHandle handle);
|
|
|
|
// Token: 0x060022E7 RID: 8935 RVA: 0x00028830 File Offset: 0x00026A30
|
|
private static void SetApplyFootIKInternal(ref PlayableHandle handle, bool value)
|
|
{
|
|
AnimationClipPlayable.INTERNAL_CALL_SetApplyFootIKInternal(ref handle, value);
|
|
}
|
|
|
|
// Token: 0x060022E8 RID: 8936
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_SetApplyFootIKInternal(ref PlayableHandle handle, bool value);
|
|
|
|
// Token: 0x060022E9 RID: 8937 RVA: 0x0002883C File Offset: 0x00026A3C
|
|
private static bool GetRemoveStartOffsetInternal(ref PlayableHandle handle)
|
|
{
|
|
return AnimationClipPlayable.INTERNAL_CALL_GetRemoveStartOffsetInternal(ref handle);
|
|
}
|
|
|
|
// Token: 0x060022EA RID: 8938
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_GetRemoveStartOffsetInternal(ref PlayableHandle handle);
|
|
|
|
// Token: 0x060022EB RID: 8939 RVA: 0x00028858 File Offset: 0x00026A58
|
|
private static void SetRemoveStartOffsetInternal(ref PlayableHandle handle, bool value)
|
|
{
|
|
AnimationClipPlayable.INTERNAL_CALL_SetRemoveStartOffsetInternal(ref handle, value);
|
|
}
|
|
|
|
// Token: 0x060022EC RID: 8940
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_SetRemoveStartOffsetInternal(ref PlayableHandle handle, bool value);
|
|
|
|
// Token: 0x04000540 RID: 1344
|
|
private PlayableHandle m_Handle;
|
|
}
|
|
}
|