public static void RSDKvRS_Save_Animation(EditorAnimation BridgeHost, string filepath)
        {
            RSDKvRS.Animation animsetvRS = new RSDKvRS.Animation();
            RSDKvRS_Save_AnimHeader(BridgeHost, animsetvRS);

            for (int a = 0; a < BridgeHost.Animations.Count; a++)
            {
                RSDKvRS.Animation.AnimationEntry animvRS = new RSDKvRS.Animation.AnimationEntry();
                BridgeHost.Animations[a].SaveTo(EngineType.RSDKvRS, animvRS);
                animsetvRS.Animations.Add(animvRS);
            }

            animsetvRS.Write(new RSDKvRS.Writer(filepath));
        }
        public static void RSDKvRS_Save_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, RSDKvRS.Animation.AnimationEntry animvRS)
        {
            animvRS.LoopIndex       = animEntry.LoopIndex;
            animvRS.SpeedMultiplyer = (byte)animEntry.SpeedMultiplyer;

            for (int i = 0; i < animEntry.Frames.Count; i++)
            {
                RSDKvRS.Animation.AnimationEntry.Frame frame = new RSDKvRS.Animation.AnimationEntry.Frame();
                RSDKvRS_Save_Frame(animEntry.Frames[i], frame);
                animvRS.Frames.Add(frame);
            }
        }
예제 #3
0
        public static void RSDKvRS_Load_AnimEntry(EditorAnimation.EditorAnimationInfo animEntry, RSDKvRS.Animation.AnimationEntry animvRS)
        {
            animEntry.AnimName        = animEntry.AnimName;
            animEntry.LoopIndex       = animvRS.LoopIndex;
            animEntry.SpeedMultiplyer = animvRS.SpeedMultiplyer;
            animEntry.RotationFlags   = 0;

            for (int i = 0; i < animvRS.Frames.Count; i++)
            {
                EditorAnimation.EditorFrame frame = new EditorAnimation.EditorFrame(EngineType.RSDKvRS, animEntry);
                RSDKvRS_Load_Frame(frame, animvRS.Frames[i]);
                animEntry.Frames.Add(frame);
            }
        }