/// <summary>
        /// Constructs a Minianim with list of frames
        /// </summary>
        /// <param name="miniAnimsBasepath"></param>
        /// <param name="miniAnimationGroup"></param>
        /// <param name="subindex">Animation Index in the Group</param>
        public MiniAnim(string miniAnimsBasepath, int miniAnimationGroup, int subindex)
        {
            string baseAnimName   = miniAnimsBasepath + miniAnimationGroup + "-" + subindex + "-";
            int    nextFrameIndex = 0;

            MiniFrames = new List <MiniFrame>();
            while (File.Exists(baseAnimName + nextFrameIndex + ".bin"))
            {
                //Console.WriteLine("Reading MiniFrame " + baseAnimName + nextFrameIndex + ".bin");
                MiniFrame mf = new MiniFrame(baseAnimName + nextFrameIndex + ".bin");
                MiniFrames.Add(mf);
                nextFrameIndex++;
            }
        }
        public bool IsValid = false; //turns true if final frame of anim ends properly.

        /// <summary>
        /// Constructs a MiniAnim object from the current position of the stream. Will create sub-mini frames.
        /// </summary>
        /// <param name="stream">Stream to construct minianim from.</param>
        public MiniAnim(Stream stream, long MiniAnimTablePointer)
        {
            Pointer = stream.Position - MiniAnimTablePointer;
            Console.WriteLine("Reading MiniAnimation 0x" + stream.Position.ToString("X2")); //"X8" = 8 byte hex output
            stream.Seek(Pointer + MiniAnimTablePointer, SeekOrigin.Begin);
            MiniFrames = new List <MiniFrame>();
            int frameindex = 0;

            while (true)
            {
                //Read Frame Until Stop or Loop at Pos + 0x12
                Console.WriteLine("--Reading MiniFrame " + frameindex + " at 0x" + stream.Position.ToString("X2"));
                MiniFrame miniframe = new MiniFrame(stream);
                MiniFrames.Add(miniframe);
                if (miniframe.EndFrame) //End of animation indicator
                {
                    IsValid = miniframe.IsValid;
                    break;
                }
                frameindex++;
            }
        }