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

ReadPlaceObject() private method

private ReadPlaceObject ( uint followingOffset ) : PlaceObject
followingOffset uint
return PlaceObject
        private PlaceObject ReadPlaceObject(uint followingOffset)
        {
            int id = this.sdtr.ReadUI16();
            int depth = this.sdtr.ReadUI16();
            Matrix matrix = this.sdtr.ReadMatrix();

            #if DEBUG
            this.Log("id=" + id + ", depth=" + depth + " matrix=" + matrix);
            #endif

            ColorTransform cxform = null;
            if (followingOffset > this.sdtr.Offset)
            {
                cxform = this.sdtr.ReadColorTransform();
            #if DEBUG
                this.Log("cxform=" + cxform);
            #endif
            }

            ICharacter ch = this.characterUnmarshaller[id];
            Layer layer = this.currentTimeline.GetLayer(depth);

            return new PlaceObject(ch, layer, null, matrix, null, false, cxform, null, null);
        }