Exemplo n.º 1
0
 private void InitExpDic()
 {
     Dictionary <string, object> .ValueCollection values = BaseDataMgr.instance.GetDicByType <SysBattleAttrLvVo>().Values;
     this.MAX_LEVEL           = values.Count;
     BattleAttrValue._expDics = new Dictionary <int, float>();
     for (int i = 1; i <= this.MAX_LEVEL; i++)
     {
         SysBattleAttrLvVo dataById = BaseDataMgr.instance.GetDataById <SysBattleAttrLvVo>(i.ToString());
         if (dataById != null)
         {
             BattleAttrValue._expDics[i] = dataById.exp_to_next;
         }
     }
 }
Exemplo n.º 2
0
 private static void InitExpDic()
 {
     if (PvpStatisticMgr._expDics != null && PvpStatisticMgr._expDics.Count > 0)
     {
         return;
     }
     Dictionary <string, object> .ValueCollection values = BaseDataMgr.instance.GetDicByType <SysBattleAttrLvVo>().Values;
     PvpStatisticMgr.MAX_LEVEL = values.Count;
     PvpStatisticMgr._expDics  = new Dictionary <int, float>();
     for (int i = 1; i <= PvpStatisticMgr.MAX_LEVEL; i++)
     {
         SysBattleAttrLvVo dataById = BaseDataMgr.instance.GetDataById <SysBattleAttrLvVo>(i.ToString());
         if (dataById != null)
         {
             PvpStatisticMgr._expDics[i] = dataById.exp_to_next;
         }
     }
 }
Exemplo n.º 3
0
 protected override void InitConfig()
 {
     this._levelDics   = new Dictionary <int, int>();
     this._killExpDics = new Dictionary <int, int>();
     Dictionary <string, object> .ValueCollection values = BaseDataMgr.instance.GetDicByType <SysBattleAttrLvVo>().Values;
     this._maxLv = values.Count;
     for (int i = 1; i <= this._maxLv; i++)
     {
         SysBattleAttrLvVo dataById = BaseDataMgr.instance.GetDataById <SysBattleAttrLvVo>(i.ToString());
         if (dataById != null)
         {
             this._levelDics.Add(i, (int)dataById.exp_to_next);
             this._killExpDics.Add(i, dataById.exp_to_kill);
         }
         else
         {
             Debug.LogError("no data from SysBattleAttrLvVo with id: " + i);
         }
     }
 }