Exemplo n.º 1
0
        SwfTagData ISwfTagVisitor <ISwfStreamWriter, SwfTagData> .Visit(DoInitActionTag tag, ISwfStreamWriter writer)
        {
            writer.WriteUInt16(tag.SpriteId);
            var actionWriter = new ActionWriter(writer);

            foreach (var action in tag.ActionRecords)
            {
                actionWriter.WriteAction(action);
            }
            return(null);
        }
Exemplo n.º 2
0
        SwfTagBase ISwfTagVisitor <ISwfStreamReader, SwfTagBase> .Visit(DoInitActionTag tag, ISwfStreamReader reader)
        {
            tag.SpriteId = reader.ReadUInt16();
            var        actionReader = new ActionReader(reader);
            ActionBase action;

            do
            {
                action = actionReader.ReadAction();
                tag.ActionRecords.Add(action);
            } while (!(action is ActionEnd));
            return(tag);
        }
Exemplo n.º 3
0
 ITagFormatter ISwfTagVisitor <object, ITagFormatter> .Visit(DoInitActionTag tag, object arg)
 {
     return(new DoInitActionTagFormatter());
 }