Exemplo n.º 1
0
 object IActionVisitor <ISwfStreamWriter, object> .Visit(ActionGotoFrame2 action, ISwfStreamWriter writer)
 {
     writer.WriteUnsignedBits(action.Reserved, 6);
     writer.WriteBit(action.SceneBias.HasValue);
     writer.WriteBit(action.Play);
     if (action.SceneBias.HasValue)
     {
         writer.WriteUInt16(action.SceneBias.Value);
     }
     return(null);
 }
Exemplo n.º 2
0
        ActionBase IActionVisitor <ushort, ActionBase> .Visit(ActionGotoFrame2 action, ushort length)
        {
            action.Reserved = (byte)_reader.ReadUnsignedBits(6);
            var hasBias = _reader.ReadBit();

            action.Play = _reader.ReadBit();
            if (hasBias)
            {
                action.SceneBias = _reader.ReadUInt16();
            }
            return(action);
        }