Exemplo n.º 1
0
 public static void Clean()
 {
     EffectTypeList.Clear();
     TypeNameList.Clear();
     typeChineseNameList.Clear();
     typeChineseNameDict.Clear();
 }
Exemplo n.º 2
0
 public static void AddType(Type t)
 {
     if (!EffectTypeList.Contains(t))
     {
         EffectTypeList.Add(t);
         string filePath = t.ToString().Replace(@"_", @"/");
         TypeNameList.Add(filePath);
     }
 }
Exemplo n.º 3
0
        public static int getIndex(Type t)
        {
            if (t == null)
            {
                return(-1);
            }

            return(EffectTypeList.IndexOf(t));
        }
Exemplo n.º 4
0
    public static void AddType(Type t)
    {
        if (!EffectTypeList.Contains(t))
        {
            EffectTypeList.Add(t);
            string[] names = t.ToString().Split('_');

            string chinesepath = t.ToString();
            for (int i = 0; i < names.Length; i++)
            {
                string name = names[i];
                if (typeChineseNameDict.ContainsKey(name))
                {
                    string chinese = typeChineseNameDict[name];
                    chinesepath = chinesepath.Replace(name, chinese);
                }
            }
            string newchn = chinesepath.Replace(@"_", @"/");
            typeChineseNameList.Add(newchn);
            string filePath = t.ToString().Replace(@"_", @"/");
            TypeNameList.Add(filePath);
        }
    }
Exemplo n.º 5
0
 public static void Clean()
 {
     EffectTypeList.Clear();
     TypeNameList.Clear();
 }