Exemplo n.º 1
0
 public LibraryAsset(Project project, string path)
 {
     Project    = project;
     Path       = path;
     ManualID   = null;
     UpdatePath = null;
     FontGlyphs = null;
     Sharepoint = null;
     SwfMode    = SwfAssetMode.Library;
 }
Exemplo n.º 2
0
		public LibraryAsset(Project project, string path)
		{
			Project = project;
			Path = path;
			ManualID = null;
			UpdatePath = null;
			FontGlyphs = null;
			Sharepoint = null;
			SwfMode = SwfAssetMode.Library;
		}
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 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;
 }