/// <summary> /// Reads all the timeproperty lists in a motion. /// </summary> /// <param name="Mot">The motion that the timeproperty lists belong to.</param> /// <param name="Reader">The BinaryReader instance used to read the *.anim file.</param> private void ReadTimePropertyLists(ref Motion Mot, ref BinaryReader Reader) { uint Count = Endian.SwapUInt32(Reader.ReadUInt32()); for (int i = 0; i < Count; i++) { TimePropertyList TList = new TimePropertyList(); TList.TimePropsCount = Endian.SwapUInt32(Reader.ReadUInt32()); for (int j = 0; j < TList.TimePropsCount; j++) { TimeProperty TProp = new TimeProperty(); TProp.TPropID = Endian.SwapUInt32(Reader.ReadUInt32()); TProp.PList = ReadPropList(Reader); } Mot.TimePropertyLists.Add(TList); } }