mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using AssetRipper.SourceGenerated.Classes.ClassID_1102;
|
|
using AssetRipper.SourceGenerated.Classes.ClassID_114;
|
|
using AssetRipper.SourceGenerated.Subclasses.StateBehavioursPair;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class StateBehavioursPairExtensions
|
|
{
|
|
public static void SetValues(this IStateBehavioursPair pair, IAnimatorState state, IMonoBehaviour[] behaviours)
|
|
{
|
|
throw new NotImplementedException();
|
|
/*if (state == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(state));
|
|
}
|
|
if (behaviours == null || behaviours.Length == 0)
|
|
{
|
|
throw new ArgumentNullException(nameof(behaviours));
|
|
}
|
|
|
|
pair.State.CopyValues(state.SerializedFile.CreatePPtr(state));
|
|
|
|
pair.StateMachineBehaviours.Clear();
|
|
pair.StateMachineBehaviours.Capacity = behaviours.Length;
|
|
for (int i = 0; i < behaviours.Length; i++)
|
|
{
|
|
IMonoBehaviour behaviour = behaviours[i];
|
|
pair.StateMachineBehaviours.AddNew().CopyValues(behaviour.SerializedFile.CreatePPtr(behaviour));
|
|
}*/
|
|
}
|
|
}
|
|
}
|