public static void RSDKv5_Save_Animation(EditorAnimation BridgeHost, string filepath)
        {
            RSDKv5.Animation animsetv5 = new RSDKv5.Animation();
            RSDKv5_Save_AnimHeader(BridgeHost, animsetv5);

            for (int a = 0; a < BridgeHost.Animations.Count; a++)
            {
                RSDKv5.Animation.AnimationEntry animv5 = new RSDKv5.Animation.AnimationEntry();
                BridgeHost.Animations[a].SaveTo(EngineType.RSDKv5, animv5);
                animsetv5.Animations.Add(animv5);
            }
            animsetv5.Write(new RSDKv5.Writer(filepath));
        }
        public static void RSDKv5_Save_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, RSDKv5.Animation.AnimationEntry animv5)
        {
            animv5.AnimName        = animEntry.AnimName;
            animv5.LoopIndex       = animEntry.LoopIndex;
            animv5.SpeedMultiplyer = animEntry.SpeedMultiplyer;
            animv5.RotationFlags   = animEntry.RotationFlags;

            for (int i = 0; i < animEntry.Frames.Count; i++)
            {
                RSDKv5.Animation.AnimationEntry.Frame frame = new RSDKv5.Animation.AnimationEntry.Frame();
                RSDKv5_Save_Frame(animEntry.Frames[i], frame);
                animv5.Frames.Add(frame);
            }
        }
Exemplo n.º 3
0
        public static void RSDKv5_Load_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, RSDKv5.Animation.AnimationEntry animv5)
        {
            animEntry.AnimName        = animv5.AnimName;
            animEntry.LoopIndex       = animv5.LoopIndex;
            animEntry.SpeedMultiplyer = animv5.SpeedMultiplyer;
            animEntry.RotationFlags   = animv5.RotationFlags;

            for (int i = 0; i < animv5.Frames.Count; i++)
            {
                EditorAnimation.EditorFrame frame = new EditorAnimation.EditorFrame(EngineType.RSDKv5, animEntry);
                RSDKv5_Load_Frame(frame, animv5.Frames[i]);
                animEntry.Frames.Add(frame);
            }
        }
 public static void RSDKvU_Export_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, string filepath)
 {
     RSDKv5.Animation.AnimationEntry animv5 = new RSDKv5.Animation.AnimationEntry();
     RSDKv5_Save_AnimEntry(animEntry, animv5);
     animv5.Write(new RSDKv5.Writer(filepath));
 }
Exemplo n.º 5
0
 public static void RSDKvU_Import_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, string filepath)
 {
     RSDKv5.Animation.AnimationEntry animv5 = new RSDKv5.Animation.AnimationEntry(new RSDKv5.Reader(filepath));
     RSDKv5_Load_AnimEntry(animEntry, animv5);
 }