Exemple #1
0
        public static ConfigMonster GetMonsterConfig(string monsterName, string typeName, string configType = "")
        {
            MonsterConfigMetaData monsterConfigMetaDataByKey = MonsterConfigMetaDataReader.GetMonsterConfigMetaDataByKey(monsterName, typeName);
            string configFile = monsterConfigMetaDataByKey.configFile;
            string name       = configType;

            if (name == string.Empty)
            {
                name = monsterConfigMetaDataByKey.configType;
            }
            return(monsterGroupMap[configFile].GetConfig <ConfigMonster>(name));
        }
Exemple #2
0
        public static string GetPrefabResPath(string monsterName, string typeName, bool useLow = false)
        {
            MonsterConfigMetaData monsterConfigMetaDataByKey = MonsterConfigMetaDataReader.GetMonsterConfigMetaDataByKey(monsterName, typeName);
            string        categoryName = monsterConfigMetaDataByKey.categoryName;
            string        subTypeName  = monsterConfigMetaDataByKey.subTypeName;
            ConfigMonster monster      = GetMonsterConfig(monsterConfigMetaDataByKey.monsterName, monsterConfigMetaDataByKey.typeName, string.Empty);

            if (useLow && monster.CommonArguments.HasLowPrefab)
            {
                string[] textArray1 = new string[] { "Entities/Monster/", categoryName, "/", subTypeName, "/", subTypeName, "_Low" };
                return(string.Concat(textArray1));
            }
            string[] textArray2 = new string[] { "Entities/Monster/", categoryName, "/", subTypeName, "/", subTypeName };
            return(string.Concat(textArray2));
        }
Exemple #3
0
 public static MonsterConfigMetaData GetMonsterConfigMetaData(string monsterName, string typeName)
 {
     return(MonsterConfigMetaDataReader.GetMonsterConfigMetaDataByKey(monsterName, typeName));
 }