SWFProcessing.SWFModeller.Characters.Shapes.IO.ShapeParser.ReadMorphLineStyleArray C# (CSharp) Method

ReadMorphLineStyleArray() private method

private ReadMorphLineStyleArray ( SWFDataTypeReader shapeReader, Tag format ) : SWFProcessing.SWFModeller.Characters.Shapes.Parts.MorphLineStyle[]
shapeReader SWFDataTypeReader
format Tag
return SWFProcessing.SWFModeller.Characters.Shapes.Parts.MorphLineStyle[]
        private MorphLineStyle[] ReadMorphLineStyleArray(SWFDataTypeReader shapeReader, Tag format)
        {
            int lineCount = shapeReader.ReadUI8();
            if (lineCount == 0xFF)
            {
                lineCount = shapeReader.ReadUI16();
            }

            MorphLineStyle[] lineStyles = new MorphLineStyle[lineCount];
            if (format == Tag.DefineMorphShape)
            {
                for (int i = 0; i < lineCount; i++)
                {
                    lineStyles[i] = this.ReadMorphLineStyle(shapeReader);
                }
            }
            else /* Else Tag.DefineMorphShape2 */
            {
                for (int i = 0; i < lineCount; i++)
                {
                    lineStyles[i] = this.ReadMorphLineStyle2(shapeReader);
                }
            }

            return lineStyles;
        }