Beispiel #1
0
 /// <summary>
 /// Exit the AoiZone
 /// </summary>
 /// <param name="key"></param>
 /// <param name="node"></param>
 public void Exit(AoiEntity node)
 {
     _xLinks.Remove(node.X.Value);
     _yLinks.Remove(node.Y.Value);
     _entityList.Remove(node.Key);
     node.Recycle();
 }
Beispiel #2
0
 /// <summary>
 /// Exit the AoiZone
 /// </summary>
 /// <param name="node"></param>
 public void Exit(AoiEntity node)
 {
     _xLinks.Remove(node.X);
     _yLinks.Remove(node.Y);
     _entityList.Remove(node.Key);
     node.Dispose();
 }
Beispiel #3
0
        /// <summary>
        /// Exit the AoiZone
        /// </summary>
        /// <param name="key"></param>
        /// <param name="node"></param>
        public void Exit(long key, AoiEntity node)
        {
            float x = node.X.Value, y = node.Y.Value;

            _xLinks.Remove(x);
            _yLinks.Remove(y);

            _entityList.Remove(key);
        }