Ejemplo n.º 1
0
        HashSet <ResourceData> IPublishProcesser.Process(ResourceData resourceData)
        {
            HashSet <ResourceData> resourceDataSet = new HashSet <ResourceData>();

            resourceDataSet.Add(resourceData);
            CSVectorString tmxMapImageArray = CSCocosHelp.GetTmxMapImageArray((string)ProjectsService.Instance.GetFullPath(resourceData));
            string         directoryName    = Path.GetDirectoryName(resourceData.Path);

            foreach (string path2 in tmxMapImageArray)
            {
                string       path          = Path.Combine(directoryName, path2);
                ResourceData resourceData1 = new ResourceData(resourceData.Type, path);
                resourceDataSet.Add(resourceData1);
            }
            return(resourceDataSet);
        }
Ejemplo n.º 2
0
        List <string> ICompositeResourceProcesser.GetMatchedImages(string filePath)
        {
            CSVectorString tmxMapImageArray = CSCocosHelp.GetTmxMapImageArray(filePath);
            string         directoryName    = Path.GetDirectoryName(filePath);
            List <string>  list             = new List <string>();

            if (tmxMapImageArray == null)
            {
                return(null);
            }
            foreach (FilePath current in tmxMapImageArray)
            {
                string item = current.ToAbsolute(directoryName);
                list.Add(item);
            }
            return(list);
        }