コード例 #1
0
        //static public void ReadXml<T>(XElement element, T sequence)
        static public void ReadXml(XElement element, Vixen.Module.Sequence.SequenceBase sequence)
        {
            //where T : Vixen.Module.Sequence.SequenceBase {
            Guid[] effectTable;
            Guid[] channelIdTable;

            element         = element.Element("Sequence");
            sequence.Length = int.Parse(element.Attribute("length").Value);

            // Timing
            _ReadTimingSource(element, sequence);

            // Module data
            _ReadModuleData(element, sequence);

            // Intervals
            _ReadIntervals(element, sequence);

            // Command table
            _ReadEffectTable(element, out effectTable);

            // Channel id table
            _ReadChannelIdTable(element, out channelIdTable);

            // Data nodes
            _ReadDataNodes(element, sequence, effectTable, channelIdTable);

            // Things that need to wait for other sequence data:

            // Runtime behavior module data
            _ReadBehaviorData(element, sequence);

            // Media module data
            _ReadMedia(element, sequence);

            sequence._ReadXml(element);
        }