123456789101112131415161718192021222324252627282930313233343536373839 |
- using System.Collections.Generic;
- using Unity.Mathematics;
- namespace ET.Server
- {
- [ComponentOf(typeof(Unit))]
- public class AOIEntity: Entity, IAwake<int, float3>, IDestroy
- {
- public Unit Unit => this.GetParent<Unit>();
- public int ViewDistance;
- public Cell Cell;
-
- public HashSet<long> SubEnterCells = new HashSet<long>();
-
- public HashSet<long> SubLeaveCells = new HashSet<long>();
-
-
- public HashSet<long> enterHashSet = new HashSet<long>();
-
- public HashSet<long> leaveHashSet = new HashSet<long>();
-
- public Dictionary<long, AOIEntity> SeeUnits = new Dictionary<long, AOIEntity>();
-
-
- public Dictionary<long, AOIEntity> BeSeeUnits = new Dictionary<long, AOIEntity>();
-
-
- public Dictionary<long, AOIEntity> SeePlayers = new Dictionary<long, AOIEntity>();
-
- public Dictionary<long, AOIEntity> BeSeePlayers = new Dictionary<long, AOIEntity>();
- }
- }
|