Exemplo n.º 1
0
        private TpDicInfo GetTpDicInfoByType(TpDicInfo par, DICTYPE type)
        {
            foreach (TpDicInfo dic in par.directorys)
            {
                if (type == DICTYPE.CocostudioType)
                {
                    if (dic.beCocosStudioProject)
                    {
                        return(dic);
                    }
                }
                else if (type == DICTYPE.MapType)
                {
                    if (TPConfig.BeTmxMap(dic.directoryInfo.Name))
                    {
                        return(dic);
                    }
                }


                TpDicInfo sub = GetTpDicInfoByType(dic, type);
                if (sub != null)
                {
                    return(sub);
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        private TpDicInfo GetTpDicInfoByType(TpDicInfo par, DICTYPE type)
        {
            foreach (TpDicInfo dic in par.directorys)
            {
                if (type == DICTYPE.CocostudioType)
                {
                    if (dic.beCocosStudioProject)
                    {
                        return dic;
                    }
                }
                else if (type == DICTYPE.MapType)
                {

                    if (TPConfig.BeTmxMap(dic.directoryInfo.Name))
                    {
                        return dic;
                    }
                }


                TpDicInfo sub = GetTpDicInfoByType(dic, type);
                if (sub != null)
                {
                    return sub;
                }
            }

            return null;
        }