Пример #1
0
 public static XElement ToXml(ClipActionsList clipActions)
 {
     var res = new XElement("events");
     foreach (var clipAction in clipActions.Records) {
         res.Add(XClipActionRecord.ToXml(clipAction));
     }
     return res;
 }
Пример #2
0
 public static void ReadClipActions(this ISwfStreamReader reader, byte swfVersion, ClipActionsList clipActions)
 {
     clipActions.Reserved = reader.ReadUInt16();
     clipActions.Flags    = reader.ReadClipEventFlags(swfVersion);
     reader.ReadClipActionRecords(swfVersion, clipActions.Records);
 }
Пример #3
0
 public static void WriteClipActions(this ISwfStreamWriter writer, byte swfVersion, ClipActionsList clipActions)
 {
     writer.WriteUInt16(clipActions.Reserved);
     writer.WriteClipEventFlags(swfVersion, clipActions.Flags);
     writer.WriteClipActionRecords(swfVersion, clipActions.Records);
 }
Пример #4
0
 public static void ReadClipActions(this ISwfStreamReader reader, byte swfVersion, ClipActionsList clipActions)
 {
     clipActions.Reserved = reader.ReadUInt16();
     clipActions.Flags = reader.ReadClipEventFlags(swfVersion);
     reader.ReadClipActionRecords(swfVersion, clipActions.Records);
 }
Пример #5
0
 public static void WriteClipActions(this ISwfStreamWriter writer, byte swfVersion, ClipActionsList clipActions)
 {
     writer.WriteUInt16(clipActions.Reserved);
     writer.WriteClipEventFlags(swfVersion, clipActions.Flags);
     writer.WriteClipActionRecords(swfVersion, clipActions.Records);
 }
Пример #6
0
 public static void FromXml(XElement xClipActions, ClipActionsList clipActions)
 {
     foreach (var xClipAction in xClipActions.Elements()) {
         clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction));
     }
 }