scripts
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Playables
|
||||
{
|
||||
// Token: 0x020000E1 RID: 225
|
||||
[RequiredByNativeCode]
|
||||
public struct Playable : IPlayable, IEquatable<Playable>
|
||||
{
|
||||
// Token: 0x060010AF RID: 4271 RVA: 0x00016694 File Offset: 0x00014894
|
||||
internal Playable(PlayableHandle handle)
|
||||
{
|
||||
this.m_Handle = handle;
|
||||
}
|
||||
|
||||
// Token: 0x1700036D RID: 877
|
||||
// (get) Token: 0x060010B0 RID: 4272 RVA: 0x000166A0 File Offset: 0x000148A0
|
||||
public static Playable Null
|
||||
{
|
||||
get
|
||||
{
|
||||
return Playable.m_NullPlayable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060010B1 RID: 4273 RVA: 0x000166BC File Offset: 0x000148BC
|
||||
public static Playable Create(PlayableGraph graph, int inputCount = 0)
|
||||
{
|
||||
Playable playable = new Playable(graph.CreatePlayableHandle());
|
||||
playable.SetInputCount(inputCount);
|
||||
return playable;
|
||||
}
|
||||
|
||||
// Token: 0x060010B2 RID: 4274 RVA: 0x000166E8 File Offset: 0x000148E8
|
||||
public PlayableHandle GetHandle()
|
||||
{
|
||||
return this.m_Handle;
|
||||
}
|
||||
|
||||
// Token: 0x060010B3 RID: 4275 RVA: 0x00016704 File Offset: 0x00014904
|
||||
public bool IsPlayableOfType<T>() where T : struct, IPlayable
|
||||
{
|
||||
return this.GetHandle().IsPlayableOfType<T>();
|
||||
}
|
||||
|
||||
// Token: 0x060010B4 RID: 4276 RVA: 0x00016728 File Offset: 0x00014928
|
||||
public Type GetPlayableType()
|
||||
{
|
||||
return this.GetHandle().GetPlayableType();
|
||||
}
|
||||
|
||||
// Token: 0x060010B5 RID: 4277 RVA: 0x0001674C File Offset: 0x0001494C
|
||||
public bool Equals(Playable other)
|
||||
{
|
||||
return this.GetHandle() == other.GetHandle();
|
||||
}
|
||||
|
||||
// Token: 0x0400020C RID: 524
|
||||
private PlayableHandle m_Handle;
|
||||
|
||||
// Token: 0x0400020D RID: 525
|
||||
private static readonly Playable m_NullPlayable = new Playable(PlayableHandle.Null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user