Beispiel #1
0
        private MapModel GetMapCnf(int mapId)
        {
            if (mapCnf.ContainsKey(mapId))
            {
                return(mapCnf[mapId]);
            }
            string   mapAssetName = ConfigDef.GetCnfNoExName("Map_" + mapId);
            string   jsonStr      = LoadHelper.LoadString(mapAssetName);
            MapModel model        = LCJson.JsonMapper.ToObject <MapModel>(jsonStr);

            mapCnf.Add(mapId, model);
            return(model);
        }
Beispiel #2
0
 public static string GetEntityCnfName(int entityId)
 {
     return(ConfigDef.GetCnfNoExName("Entity_" + entityId));
 }
Beispiel #3
0
 public static string GetBevTreeCnfName(RequestId requestId)
 {
     return(ConfigDef.GetCnfNoExName("Behavior_" + requestId.ToString()));
 }
Beispiel #4
0
 public static string GetDecTreeCnfName(int entityId)
 {
     return(ConfigDef.GetCnfNoExName("Decision_" + entityId));
 }
Beispiel #5
0
 public static string GetBulletCnfName(string id)
 {
     return(ConfigDef.GetCnfNoExName("Bullet_" + id));
 }
Beispiel #6
0
 public static string GetAoeCnfName(string id)
 {
     return(ConfigDef.GetCnfNoExName("Aoe_" + id));
 }
Beispiel #7
0
 public static string GetTimelineCnfName(string id)
 {
     return(ConfigDef.GetCnfNoExName("Sk_Timeline_" + id));
 }
Beispiel #8
0
 public static string GetSkillCnfName(string id)
 {
     return(ConfigDef.GetCnfNoExName("Skill_" + id));
 }
Beispiel #9
0
 public static string GetDialogCnfName(DialogType dialogType)
 {
     return(ConfigDef.GetCnfNoExName($"{dialogType}Dialog"));
 }