Axiom.Serialization.MeshSerializerImpl.ReadAnimations C# (CSharp) Метод

ReadAnimations() защищенный Метод

protected ReadAnimations ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void
		protected virtual void ReadAnimations( BinaryReader reader )
		{
			if ( !IsEOF( reader ) )
			{
				MeshChunkID chunkID = ReadChunk( reader );

				while ( !IsEOF( reader ) &&
					chunkID == MeshChunkID.Animation )
				{

					switch ( chunkID )
					{
						case MeshChunkID.Animation:
							ReadAnimation( reader );
							break;
					}
					if ( !IsEOF( reader ) )
						chunkID = ReadChunk( reader );
				}
				if ( !IsEOF( reader ) )
				{
					// backpedal to the start of chunk
					Seek( reader, -ChunkOverheadSize );
				}
			}
		}