Пример #1
0
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         BATTLE_POS bATTLE_POS = new BATTLE_POS();
         bATTLE_POS.SetData(data);
         this.Add(bATTLE_POS);
     }
     return(true);
 }
Пример #2
0
    public void Add(BATTLE_POS kData)
    {
        BATTLE_POS_GRID bATTLE_POS_GRID = this.GetInfo(kData.GRID_ID);

        if (bATTLE_POS_GRID == null)
        {
            bATTLE_POS_GRID = new BATTLE_POS_GRID();
            bATTLE_POS_GRID.Set(kData.GRID_ID, kData.POS_WIDTH, kData.POS_HEIGHT);
            this.m_dicBattlePos.Add(kData.GRID_ID, bATTLE_POS_GRID);
        }
        if (bATTLE_POS_GRID.mListPos == null)
        {
            Debug.LogError(string.Format("Add Fail:{0},{1}", kData.GRID_ID, kData.CELL));
        }
        bATTLE_POS_GRID.mListPos[kData.CELL] = new Vector3(kData.POS_X, 0f, kData.POS_Y);
    }