Beispiel #1
0
        internal static MorphFrameData getMorphFrame(Stream fs)
        {
            var morphFrameData = new MorphFrameData();

            morphFrameData.Name        = ParserHelper.getShift_JISString(fs, 15);
            morphFrameData.FrameNumber = ParserHelper.getDWORD(fs);
            morphFrameData.MorphValue  = ParserHelper.getFloat(fs);
            return(morphFrameData);
        }
Beispiel #2
0
        internal static MorphFrameList getFraceFrameList(Stream fs)
        {
            var morphFrameList = new MorphFrameList();

            try
            {
                morphFrameList.MorphFrameCount = ParserHelper.getDWORD(fs);
            }
            catch
            {
                morphFrameList.MorphFrameCount = 0;
                return(morphFrameList);
            }
            for (int i = 0; i < morphFrameList.MorphFrameCount; i++)
            {
                morphFrameList.morphFrameDatas.Add(MorphFrameData.getMorphFrame(fs));
            }
            return(morphFrameList);
        }