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;
}