scripts
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Playables
|
||||
{
|
||||
// Token: 0x020004BE RID: 1214
|
||||
public static class PlayableExtensions
|
||||
{
|
||||
// Token: 0x06003B44 RID: 15172 RVA: 0x00067E20 File Offset: 0x00066020
|
||||
public static bool IsValid<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().IsValid();
|
||||
}
|
||||
|
||||
// Token: 0x06003B45 RID: 15173 RVA: 0x00067E4C File Offset: 0x0006604C
|
||||
public static void Destroy<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().Destroy();
|
||||
}
|
||||
|
||||
// Token: 0x06003B46 RID: 15174 RVA: 0x00067E70 File Offset: 0x00066070
|
||||
public static PlayableGraph GetGraph<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetGraph();
|
||||
}
|
||||
|
||||
// Token: 0x06003B47 RID: 15175 RVA: 0x00067E9C File Offset: 0x0006609C
|
||||
public static void SetPlayState<U>(this U playable, PlayState value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetPlayState(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B48 RID: 15176 RVA: 0x00067EC0 File Offset: 0x000660C0
|
||||
public static PlayState GetPlayState<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetPlayState();
|
||||
}
|
||||
|
||||
// Token: 0x06003B49 RID: 15177 RVA: 0x00067EEC File Offset: 0x000660EC
|
||||
public static void SetSpeed<U>(this U playable, double value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetSpeed(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B4A RID: 15178 RVA: 0x00067F10 File Offset: 0x00066110
|
||||
public static double GetSpeed<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetSpeed();
|
||||
}
|
||||
|
||||
// Token: 0x06003B4B RID: 15179 RVA: 0x00067F3C File Offset: 0x0006613C
|
||||
public static void SetDuration<U>(this U playable, double value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetDuration(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B4C RID: 15180 RVA: 0x00067F60 File Offset: 0x00066160
|
||||
public static double GetDuration<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetDuration();
|
||||
}
|
||||
|
||||
// Token: 0x06003B4D RID: 15181 RVA: 0x00067F8C File Offset: 0x0006618C
|
||||
public static void SetTime<U>(this U playable, double value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetTime(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B4E RID: 15182 RVA: 0x00067FB0 File Offset: 0x000661B0
|
||||
public static double GetTime<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetTime();
|
||||
}
|
||||
|
||||
// Token: 0x06003B4F RID: 15183 RVA: 0x00067FDC File Offset: 0x000661DC
|
||||
public static void SetDone<U>(this U playable, bool value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetDone(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B50 RID: 15184 RVA: 0x00068000 File Offset: 0x00066200
|
||||
public static bool IsDone<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().IsDone();
|
||||
}
|
||||
|
||||
// Token: 0x06003B51 RID: 15185 RVA: 0x0006802C File Offset: 0x0006622C
|
||||
public static void SetPropagateSetTime<U>(this U playable, bool value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetPropagateSetTime(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B52 RID: 15186 RVA: 0x00068050 File Offset: 0x00066250
|
||||
public static bool GetPropagateSetTime<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetPropagateSetTime();
|
||||
}
|
||||
|
||||
// Token: 0x06003B53 RID: 15187 RVA: 0x0006807C File Offset: 0x0006627C
|
||||
public static bool CanChangeInputs<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().CanChangeInputs();
|
||||
}
|
||||
|
||||
// Token: 0x06003B54 RID: 15188 RVA: 0x000680A8 File Offset: 0x000662A8
|
||||
public static bool CanSetWeights<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().CanSetWeights();
|
||||
}
|
||||
|
||||
// Token: 0x06003B55 RID: 15189 RVA: 0x000680D4 File Offset: 0x000662D4
|
||||
public static bool CanDestroy<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().CanDestroy();
|
||||
}
|
||||
|
||||
// Token: 0x06003B56 RID: 15190 RVA: 0x00068100 File Offset: 0x00066300
|
||||
public static void SetInputCount<U>(this U playable, int value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetInputCount(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B57 RID: 15191 RVA: 0x00068124 File Offset: 0x00066324
|
||||
public static int GetInputCount<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetInputCount();
|
||||
}
|
||||
|
||||
// Token: 0x06003B58 RID: 15192 RVA: 0x00068150 File Offset: 0x00066350
|
||||
public static void SetOutputCount<U>(this U playable, int value) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetOutputCount(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003B59 RID: 15193 RVA: 0x00068174 File Offset: 0x00066374
|
||||
public static int GetOutputCount<U>(this U playable) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetOutputCount();
|
||||
}
|
||||
|
||||
// Token: 0x06003B5A RID: 15194 RVA: 0x000681A0 File Offset: 0x000663A0
|
||||
public static Playable GetInput<U>(this U playable, int inputPort) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetInput(inputPort);
|
||||
}
|
||||
|
||||
// Token: 0x06003B5B RID: 15195 RVA: 0x000681CC File Offset: 0x000663CC
|
||||
public static Playable GetOutput<U>(this U playable, int outputPort) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetOutput(outputPort);
|
||||
}
|
||||
|
||||
// Token: 0x06003B5C RID: 15196 RVA: 0x000681F8 File Offset: 0x000663F8
|
||||
public static void SetInputWeight<U>(this U playable, int inputIndex, float weight) where U : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetInputWeight(inputIndex, weight);
|
||||
}
|
||||
|
||||
// Token: 0x06003B5D RID: 15197 RVA: 0x00068220 File Offset: 0x00066420
|
||||
public static void SetInputWeight<U, V>(this U playable, V input, float weight) where U : struct, IPlayable where V : struct, IPlayable
|
||||
{
|
||||
playable.GetHandle().SetInputWeight(input.GetHandle(), weight);
|
||||
}
|
||||
|
||||
// Token: 0x06003B5E RID: 15198 RVA: 0x00068254 File Offset: 0x00066454
|
||||
public static float GetInputWeight<U>(this U playable, int inputIndex) where U : struct, IPlayable
|
||||
{
|
||||
return playable.GetHandle().GetInputWeight(inputIndex);
|
||||
}
|
||||
|
||||
// Token: 0x06003B5F RID: 15199 RVA: 0x00068280 File Offset: 0x00066480
|
||||
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex) where U : struct, IPlayable where V : struct, IPlayable
|
||||
{
|
||||
playable.GetGraph<U>().Connect<V, U>(sourcePlayable, sourceOutputIndex, playable, inputIndex);
|
||||
}
|
||||
|
||||
// Token: 0x06003B60 RID: 15200 RVA: 0x000682A4 File Offset: 0x000664A4
|
||||
public static void AddInput<U, V>(this U playable, V sourcePlayable, int sourceOutputIndex) where U : struct, IPlayable where V : struct, IPlayable
|
||||
{
|
||||
int inputCount = playable.GetInputCount<U>();
|
||||
playable.SetInputCount(inputCount + 1);
|
||||
playable.ConnectInput(inputCount, sourcePlayable, sourceOutputIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user