Esempio n. 1
0
        /// <summary>
        /// 给出人物范围内的客户端
        /// </summary>
        /// <param name="range"></param>
        /// <returns></returns>
        public IEnumerable <WorldEntity> GetAllEntitysInRange(int iRange)
        {
            BaseMap tempMap = this.Map;

            if (tempMap == null)
            {
                LOGs.WriteLine(LogMessageType.MSG_ERROR, "GameEntity.GetItemsInRange(...) - tempMap == null error!");

                return(NullEnumerable <WorldEntity> .SingletonInstance);
            }

            return(tempMap.GetAllEntitysInRange(this.Location, iRange));
        }