public static List <XML_Types.XML_SoundSequence> loadSoundSequences(string projectFolder, string clipName) { XML_AudioSaxParserComponent mainComponent = new XML_AudioSaxParserComponent(clipName); string filename = projectFolder + "/stage.xml"; if (new FileInfo(filename).Exists) { XML_CommonLoader.parseXmlFile(filename, mainComponent); List <XML_Types.XML_SoundSequence> soundSequences = mainComponent.soundSequences; return(soundSequences); } return(new List <XML_Types.XML_SoundSequence>()); // empty list. }
public static List <XML_Types.XML_GenericMeta> loadGenericMeta(string projectFolder) { XML_MetaSaxParserComponent mainComponent = new XML_MetaSaxParserComponent(); string filename = projectFolder + "/stage.xml"; if (new FileInfo(filename).Exists) { XML_CommonLoader.parseXmlFile(filename, mainComponent); List <XML_Types.XML_GenericMeta> metas = mainComponent.metas; return(metas); } return(new List <XML_Types.XML_GenericMeta>()); // empty list. }
public static List <string> loadStageClipNames(string projectFolder) { XML_StageNamesSaxParserComponent mainComponent = new XML_StageNamesSaxParserComponent(); string filename = projectFolder + "/stage.xml"; if (new FileInfo(filename).Exists) { XML_CommonLoader.parseXmlFile(filename, mainComponent); List <string> clipNames = mainComponent.clipNames; return(clipNames); } return(new List <string>()); // empty list. }