public MDTigerInfo GetTigerInfo(int id) { MDTigerInfo ti = null; dicTigerInfo.TryGetValue(id, out ti); return(ti); }
void processAchievementDescription(MDAchievement ach) { string objName = ""; if (ach.type == DTAchievementType.TIGER_ID) { MDTigerInfo ti = GetTigerInfo(ach.goals[0]); objName = ti.name; } else { BCObj mObj = GetBCObj(ach.goals[0]); objName = mObj.Name; } string desstr = ""; string[] des = ach.des.Split('#'); for (int i = 0, max = des.Length; i < max; i++) { desstr += des[i]; if (i < ach.pramater.Count) { if (ach.pramater[i] == 1) { desstr += objName; } else if (ach.pramater[i] == 2) { desstr += ach.goal_num.ToString(); } } } ach.des = desstr; }