public static XElement ToXml(ClipActionsList clipActions) { var res = new XElement("events"); foreach (var clipAction in clipActions.Records) { res.Add(XClipActionRecord.ToXml(clipAction)); } return res; }
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); }
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); }
public static void FromXml(XElement xClipActions, ClipActionsList clipActions) { foreach (var xClipAction in xClipActions.Elements()) { clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction)); } }