public bool AddBountyEcoData(BountyEcoData Data)
 {
     for (int i = 0; i < this.m_BountyEcoDataList.Count; i++)
     {
         if (Data.i16EcoIndex == this.m_BountyEcoDataList[i].i16EcoIndex)
         {
             this.m_BountyEcoDataList[i] = Data;
             return(true);
         }
     }
     this.m_BountyEcoDataList.Add(Data);
     return(true);
 }
Esempio n. 2
0
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         BountyEcoData bountyEcoData = new BountyEcoData();
         bountyEcoData.SetData(data);
         for (int i = 0; i < 11; i++)
         {
             bountyEcoData.i32CharKind[i] = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(bountyEcoData.strCharCode[i]);
         }
         NrTSingleton <BountyHuntManager> .Instance.AddBountyEcoData(bountyEcoData);
     }
     return(true);
 }