Beispiel #1
0
 public FormationInfo GetFormationInfo(int id)
 {
     if (FormationInfoDictionary.ContainsKey(id))
     {
         return(FormationInfoDictionary[id]);
     }
     return(null);
 }
Beispiel #2
0
        //阵型战力加成
        public float FormationPower(int formationId)
        {
            if (!FormationInfoDictionary.ContainsKey(formationId))
            {
                return(0);
            }
            FormationInfo info = FormationInfoDictionary[formationId];

            return(info.Power);
        }