Cell.cs 646 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. [ChildOf(typeof(AOIManagerComponent))]
  5. public class Cell: Entity, IAwake, IDestroy
  6. {
  7. // 处在这个cell的单位
  8. public Dictionary<long, EntityRef<AOIEntity>> AOIUnits = new Dictionary<long, EntityRef<AOIEntity>>();
  9. // 订阅了这个Cell的进入事件
  10. public Dictionary<long, EntityRef<AOIEntity>> SubsEnterEntities = new Dictionary<long, EntityRef<AOIEntity>>();
  11. // 订阅了这个Cell的退出事件
  12. public Dictionary<long, EntityRef<AOIEntity>> SubsLeaveEntities = new Dictionary<long, EntityRef<AOIEntity>>();
  13. }
  14. }