Esempio n. 1
0
 public static ConfigMonster GetFirstMonsterConfigBySubTypeName(string subTypeName)
 {
     foreach (MonsterConfigMetaData data in MonsterConfigMetaDataReader.GetItemList())
     {
         if (data.subTypeName == subTypeName)
         {
             string configFile = data.configFile;
             string configType = data.configType;
             return(monsterGroupMap[configFile].GetConfig <ConfigMonster>(configType));
         }
     }
     return(null);
 }
Esempio n. 2
0
        public static void LoadAllMonsterConfig()
        {
            monsterGroupMap = new Dictionary <string, ConfigOverrideGroup>();
            List <MonsterConfigMetaData> itemList = MonsterConfigMetaDataReader.GetItemList();
            HashSet <string>             set      = new HashSet <string>();

            foreach (MonsterConfigMetaData data in itemList)
            {
                string configFile = data.configFile;
                set.Add(configFile);
            }
            foreach (string str2 in set)
            {
                ConfigOverrideGroup group = ConfigUtil.LoadJSONConfig <ConfigOverrideGroup>("Data/MonsterConfig/" + str2);
                monsterGroupMap.Add(str2, group);
            }
        }
Esempio n. 3
0
 public static List <MonsterConfigMetaData> GetAllMonsterConfigMetaData()
 {
     return(MonsterConfigMetaDataReader.GetItemList());
 }