internal static FrameElementData GetFrameElementData(Stream fs, Header header) { FrameElementData data = new FrameElementData(); data.IsMorph = ParserHelper.getByte(fs) == 1; if (data.IsMorph) { data.Index = ParserHelper.getIndex(fs, header.MorphIndexSize); } else { data.Index = ParserHelper.getIndex(fs, header.BoneIndexSize); } return(data); }
internal static ShowFrameData getShowFrameData(Stream fs, Header header) { ShowFrameData data = new ShowFrameData(); data.FrameName = ParserHelper.getTextBuf(fs, header.Encode); data.FrameName_En = ParserHelper.getTextBuf(fs, header.Encode); data.IsSpecialFrame = ParserHelper.getByte(fs) == 1; data.ElementCount = ParserHelper.getInt(fs); data.FrameElements = new List <FrameElementData>(); for (int i = 0; i < data.ElementCount; i++) { data.FrameElements.Add(FrameElementData.GetFrameElementData(fs, header)); } return(data); }