Пример #1
0
 /// <summary>
 /// 关注某格子 when interest some gird
 /// </summary>
 /// <param name="grid"></param>
 public void OnInterestGrid(AOIGrid grid)
 {
     CurrentInterestGridList.Add(grid);
     foreach (var item in grid.ExistEntityList)
     {
         CurrentInterestEntityList.Add(item);
     }
 }
Пример #2
0
 /// <summary>
 /// 不再关注某格子 when no interest some grid
 /// </summary>
 /// <param name="grid"></param>
 public void OnNonInterestGrid(AOIGrid grid)
 {
     CurrentInterestGridList.Remove(grid);
     CurrentInterestEntityList.ExceptWith(grid.ExistEntityList);
 }