Exemple #1
0
 public void SetAnimationAtChannel(
     UIntPtr skeletonPointer,
     int animationIndex,
     int channelNo,
     float animationSpeedMultiplier,
     float blendInPeriod,
     float startProgress)
 {
     ScriptingInterfaceOfIMBSkeletonExtensions.call_SetAnimationAtChannelDelegate(skeletonPointer, animationIndex, channelNo, animationSpeedMultiplier, blendInPeriod, startProgress);
 }
Exemple #2
0
        public Skeleton CreateWithActionSet(
            ref AgentVisualsNativeData agentVisualsNativeData,
            ref AnimationSystemData animationSystemData)
        {
            NativeObjectPointer nativeObjectPointer = ScriptingInterfaceOfIMBSkeletonExtensions.call_CreateWithActionSetDelegate(ref agentVisualsNativeData, ref animationSystemData);
            Skeleton            skeleton            = (Skeleton)null;

            if (nativeObjectPointer.Pointer != UIntPtr.Zero)
            {
                skeleton = new Skeleton(nativeObjectPointer.Pointer);
                LibraryApplicationInterface.IManaged.DecreaseReferenceCount(nativeObjectPointer.Pointer);
            }
            return(skeleton);
        }
Exemple #3
0
 public void SetFacialAnimationOfChannel(
     UIntPtr skeletonPointer,
     int channel,
     string facialAnimationName,
     bool playSound,
     bool loop)
 {
     byte[] numArray = (byte[])null;
     if (facialAnimationName != null)
     {
         numArray = CallbackStringBufferManager.StringBuffer0;
         int bytes = ScriptingInterfaceOfIMBSkeletonExtensions._utf8.GetBytes(facialAnimationName, 0, facialAnimationName.Length, numArray, 0);
         numArray[bytes] = (byte)0;
     }
     ScriptingInterfaceOfIMBSkeletonExtensions.call_SetFacialAnimationOfChannelDelegate(skeletonPointer, channel, numArray, playSound, loop);
 }
Exemple #4
0
        public Skeleton CreateSimpleSkeleton(string skeletonName)
        {
            byte[] numArray = (byte[])null;
            if (skeletonName != null)
            {
                numArray = CallbackStringBufferManager.StringBuffer0;
                int bytes = ScriptingInterfaceOfIMBSkeletonExtensions._utf8.GetBytes(skeletonName, 0, skeletonName.Length, numArray, 0);
                numArray[bytes] = (byte)0;
            }
            NativeObjectPointer nativeObjectPointer = ScriptingInterfaceOfIMBSkeletonExtensions.call_CreateSimpleSkeletonDelegate(numArray);
            Skeleton            skeleton            = (Skeleton)null;

            if (nativeObjectPointer.Pointer != UIntPtr.Zero)
            {
                skeleton = new Skeleton(nativeObjectPointer.Pointer);
                LibraryApplicationInterface.IManaged.DecreaseReferenceCount(nativeObjectPointer.Pointer);
            }
            return(skeleton);
        }
Exemple #5
0
 public void TickActionChannels(UIntPtr skeletonPointer) => ScriptingInterfaceOfIMBSkeletonExtensions.call_TickActionChannelsDelegate(skeletonPointer);
Exemple #6
0
 public int GetActionAtChannel(UIntPtr skeletonPointer, int channelNo) => ScriptingInterfaceOfIMBSkeletonExtensions.call_GetActionAtChannelDelegate(skeletonPointer, channelNo);
Exemple #7
0
 public string GetSkeletonFaceAnimationName(UIntPtr entityId) => ScriptingInterfaceOfIMBSkeletonExtensions.call_GetSkeletonFaceAnimationNameDelegate(entityId) != 1 ? (string)null : Managed.ReturnValueFromEngine;
Exemple #8
0
 public void SetSkeletonFaceAnimationTime(UIntPtr entityId, float time) => ScriptingInterfaceOfIMBSkeletonExtensions.call_SetSkeletonFaceAnimationTimeDelegate(entityId, time);
Exemple #9
0
 public float GetSkeletonFaceAnimationTime(UIntPtr entityId) => ScriptingInterfaceOfIMBSkeletonExtensions.call_GetSkeletonFaceAnimationTimeDelegate(entityId);