Beispiel #1
0
        /// <summary>
        /// Returns with all
        /// </summary>
        /// <returns></returns>
        public List <string> GetLines()
        {
            // Getting all the Stuff
            List <string> lines = new List <string> {
                "[Events]", "//Background and Video events"
            };

            lines.AddRange(BackgroundAndVideoEvents.Select(e => e.GetLine()));
            lines.Add("//Break Periods");
            lines.AddRange(BreakPeriods.Select(b => b.GetLine()));
            lines.Add("//Storyboard Layer 0 (Background)");
            lines.AddRange(Event.SerializeEventTree(StoryboardLayerBackground));
            lines.Add("//Storyboard Layer 1 (Fail)");
            lines.AddRange(Event.SerializeEventTree(StoryboardLayerFail));
            lines.Add("//Storyboard Layer 2 (Pass)");
            lines.AddRange(Event.SerializeEventTree(StoryboardLayerPass));
            lines.Add("//Storyboard Layer 3 (Foreground)");
            lines.AddRange(Event.SerializeEventTree(StoryboardLayerForeground));
            lines.Add("//Storyboard Layer 4 (Overlay)");
            lines.AddRange(Event.SerializeEventTree(StoryboardLayerOverlay));
            lines.Add("//Storyboard Sound Samples");
            lines.AddRange(StoryboardSoundSamples.Select(sbss => sbss.GetLine()));
            lines.Add("");

            return(lines);
        }
Beispiel #2
0
 /// <summary>
 /// Appends all serialized contents of this storyboards to specified list of strings.
 /// </summary>
 /// <param name="lines"></param>
 public void AppendLines(List <string> lines)
 {
     lines.Add("[Events]");
     lines.Add("//Background and Video events");
     lines.AddRange(BackgroundAndVideoEvents.Select(e => e.GetLine()));
     lines.Add("//Break Periods");
     lines.AddRange(BreakPeriods.Select(b => b.GetLine()));
     lines.Add("//Storyboard Layer 0 (Background)");
     lines.AddRange(Event.SerializeEventTree(StoryboardLayerBackground));
     lines.Add("//Storyboard Layer 1 (Fail)");
     lines.AddRange(Event.SerializeEventTree(StoryboardLayerFail));
     lines.Add("//Storyboard Layer 2 (Pass)");
     lines.AddRange(Event.SerializeEventTree(StoryboardLayerPass));
     lines.Add("//Storyboard Layer 3 (Foreground)");
     lines.AddRange(Event.SerializeEventTree(StoryboardLayerForeground));
     lines.Add("//Storyboard Layer 4 (Overlay)");
     lines.AddRange(Event.SerializeEventTree(StoryboardLayerOverlay));
     lines.Add("//Storyboard Sound Samples");
     lines.AddRange(StoryboardSoundSamples.Select(sbss => sbss.GetLine()));
     lines.Add("");
 }