scripts
This commit is contained in:
@@ -0,0 +1,200 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x0200008A RID: 138
|
||||
[RequiredByNativeCode]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public sealed class AnimationCurve
|
||||
{
|
||||
// Token: 0x06000A36 RID: 2614 RVA: 0x0000F7B4 File Offset: 0x0000D9B4
|
||||
public AnimationCurve(params Keyframe[] keys)
|
||||
{
|
||||
this.Init(keys);
|
||||
}
|
||||
|
||||
// Token: 0x06000A37 RID: 2615 RVA: 0x0000F7C4 File Offset: 0x0000D9C4
|
||||
[RequiredByNativeCode]
|
||||
public AnimationCurve()
|
||||
{
|
||||
this.Init(null);
|
||||
}
|
||||
|
||||
// Token: 0x06000A38 RID: 2616
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void Cleanup();
|
||||
|
||||
// Token: 0x06000A39 RID: 2617 RVA: 0x0000F7D4 File Offset: 0x0000D9D4
|
||||
~AnimationCurve()
|
||||
{
|
||||
this.Cleanup();
|
||||
}
|
||||
|
||||
// Token: 0x06000A3A RID: 2618
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern float Evaluate(float time);
|
||||
|
||||
// Token: 0x17000256 RID: 598
|
||||
// (get) Token: 0x06000A3B RID: 2619 RVA: 0x0000F804 File Offset: 0x0000DA04
|
||||
// (set) Token: 0x06000A3C RID: 2620 RVA: 0x0000F820 File Offset: 0x0000DA20
|
||||
public Keyframe[] keys
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetKeys();
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetKeys(value);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000A3D RID: 2621
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern int AddKey(float time, float value);
|
||||
|
||||
// Token: 0x06000A3E RID: 2622 RVA: 0x0000F82C File Offset: 0x0000DA2C
|
||||
public int AddKey(Keyframe key)
|
||||
{
|
||||
return this.AddKey_Internal(key);
|
||||
}
|
||||
|
||||
// Token: 0x06000A3F RID: 2623 RVA: 0x0000F848 File Offset: 0x0000DA48
|
||||
private int AddKey_Internal(Keyframe key)
|
||||
{
|
||||
return AnimationCurve.INTERNAL_CALL_AddKey_Internal(this, ref key);
|
||||
}
|
||||
|
||||
// Token: 0x06000A40 RID: 2624
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern int INTERNAL_CALL_AddKey_Internal(AnimationCurve self, ref Keyframe key);
|
||||
|
||||
// Token: 0x06000A41 RID: 2625 RVA: 0x0000F868 File Offset: 0x0000DA68
|
||||
public int MoveKey(int index, Keyframe key)
|
||||
{
|
||||
return AnimationCurve.INTERNAL_CALL_MoveKey(this, index, ref key);
|
||||
}
|
||||
|
||||
// Token: 0x06000A42 RID: 2626
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern int INTERNAL_CALL_MoveKey(AnimationCurve self, int index, ref Keyframe key);
|
||||
|
||||
// Token: 0x06000A43 RID: 2627
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern void RemoveKey(int index);
|
||||
|
||||
// Token: 0x17000257 RID: 599
|
||||
public Keyframe this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetKey_Internal(index);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000258 RID: 600
|
||||
// (get) Token: 0x06000A45 RID: 2629
|
||||
public extern int length
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x06000A46 RID: 2630
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void SetKeys(Keyframe[] keys);
|
||||
|
||||
// Token: 0x06000A47 RID: 2631 RVA: 0x0000F8A4 File Offset: 0x0000DAA4
|
||||
private Keyframe GetKey_Internal(int index)
|
||||
{
|
||||
Keyframe keyframe;
|
||||
AnimationCurve.INTERNAL_CALL_GetKey_Internal(this, index, out keyframe);
|
||||
return keyframe;
|
||||
}
|
||||
|
||||
// Token: 0x06000A48 RID: 2632
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_GetKey_Internal(AnimationCurve self, int index, out Keyframe value);
|
||||
|
||||
// Token: 0x06000A49 RID: 2633
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern Keyframe[] GetKeys();
|
||||
|
||||
// Token: 0x06000A4A RID: 2634
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern void SmoothTangents(int index, float weight);
|
||||
|
||||
// Token: 0x06000A4B RID: 2635 RVA: 0x0000F8C4 File Offset: 0x0000DAC4
|
||||
public static AnimationCurve Linear(float timeStart, float valueStart, float timeEnd, float valueEnd)
|
||||
{
|
||||
float num = (valueEnd - valueStart) / (timeEnd - timeStart);
|
||||
Keyframe[] array = new Keyframe[]
|
||||
{
|
||||
new Keyframe(timeStart, valueStart, 0f, num),
|
||||
new Keyframe(timeEnd, valueEnd, num, 0f)
|
||||
};
|
||||
return new AnimationCurve(array);
|
||||
}
|
||||
|
||||
// Token: 0x06000A4C RID: 2636 RVA: 0x0000F920 File Offset: 0x0000DB20
|
||||
public static AnimationCurve EaseInOut(float timeStart, float valueStart, float timeEnd, float valueEnd)
|
||||
{
|
||||
Keyframe[] array = new Keyframe[]
|
||||
{
|
||||
new Keyframe(timeStart, valueStart, 0f, 0f),
|
||||
new Keyframe(timeEnd, valueEnd, 0f, 0f)
|
||||
};
|
||||
return new AnimationCurve(array);
|
||||
}
|
||||
|
||||
// Token: 0x17000259 RID: 601
|
||||
// (get) Token: 0x06000A4D RID: 2637
|
||||
// (set) Token: 0x06000A4E RID: 2638
|
||||
public extern WrapMode preWrapMode
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700025A RID: 602
|
||||
// (get) Token: 0x06000A4F RID: 2639
|
||||
// (set) Token: 0x06000A50 RID: 2640
|
||||
public extern WrapMode postWrapMode
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06000A51 RID: 2641
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void Init(Keyframe[] keys);
|
||||
|
||||
// Token: 0x0400010A RID: 266
|
||||
internal IntPtr m_Ptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user