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); }
public static string GetEntityCnfName(int entityId) { return(ConfigDef.GetCnfNoExName("Entity_" + entityId)); }
public static string GetBevTreeCnfName(RequestId requestId) { return(ConfigDef.GetCnfNoExName("Behavior_" + requestId.ToString())); }
public static string GetDecTreeCnfName(int entityId) { return(ConfigDef.GetCnfNoExName("Decision_" + entityId)); }
public static string GetBulletCnfName(string id) { return(ConfigDef.GetCnfNoExName("Bullet_" + id)); }
public static string GetAoeCnfName(string id) { return(ConfigDef.GetCnfNoExName("Aoe_" + id)); }
public static string GetTimelineCnfName(string id) { return(ConfigDef.GetCnfNoExName("Sk_Timeline_" + id)); }
public static string GetSkillCnfName(string id) { return(ConfigDef.GetCnfNoExName("Skill_" + id)); }
public static string GetDialogCnfName(DialogType dialogType) { return(ConfigDef.GetCnfNoExName($"{dialogType}Dialog")); }