public LibraryAsset(Project project, string path) { Project = project; Path = path; ManualID = null; UpdatePath = null; FontGlyphs = null; Sharepoint = null; SwfMode = SwfAssetMode.Library; }
private string[] GetLibraryPaths(SwfAssetMode mode) { List <string> paths = new List <string>(); foreach (LibraryAsset asset in SwcLibraries) { if (asset.SwfMode == mode) { asset.Path = asset.Path.Replace("/", "\\"); paths.Add(asset.Path); } } string[] newList = new string[paths.Count]; paths.CopyTo(newList); return(newList); }
private string[] ReadLibrary(string name, SwfAssetMode mode) { ReadStartElement(name); List<string> elements = new List<string>(); while (Name == "element") { string path = OSPath(GetAttribute("path")); elements.Add(path); if (mode != SwfAssetMode.Ignore) { LibraryAsset asset = new LibraryAsset(project, path); asset.SwfMode = mode; project.LoomLibraries.Add(asset); } Read(); } ReadEndElement(); string[] result = new string[elements.Count]; elements.CopyTo(result); return result; }
private string[] ReadLibrary(string name, SwfAssetMode mode) { ReadStartElement(name); List <string> elements = new List <string>(); while (Name == "element") { string path = OSPath(GetAttribute("path")); elements.Add(path); if (mode != SwfAssetMode.Ignore) { LibraryAsset asset = new LibraryAsset(project, path); asset.SwfMode = mode; project.SwcLibraries.Add(asset); } Read(); } ReadEndElement(); string[] result = new string[elements.Count]; elements.CopyTo(result); return(result); }
private string[] GetLibraryPaths(SwfAssetMode mode) { List<string> paths = new List<string>(); foreach (LibraryAsset asset in LoomLibraries) if (asset.SwfMode == mode) { asset.Path = asset.Path.Replace("/", "\\"); paths.Add(asset.Path); } string[] newList = new string[paths.Count]; paths.CopyTo(newList); return newList; }