SWFProcessing.SWFModeller.SWFReader.ReadDefineMorphShape C# (CSharp) Method

ReadDefineMorphShape() private method

private ReadDefineMorphShape ( Tag format, uint followingOffset ) : void
format Tag
followingOffset uint
return void
        private void ReadDefineMorphShape(Tag format, uint followingOffset)
        {
            int id = this.sdtr.ReadUI16();

            byte[] unparsedShape = this.sdtr.ReadByteBlock((int)(followingOffset - this.sdtr.Offset));

            IShape shape = new ShapeParser().Parse(format, unparsedShape, this);

            this.characterUnmarshaller.Add(id, shape);
            this.swf.AddCharacter(CID_PREFIX + id, shape);
        }