wServer.realm.entities.player.Player.GetNewStatics C# (CSharp) Method

GetNewStatics() private method

private GetNewStatics ( int _x, int _y ) : IEnumerable
_x int
_y int
return IEnumerable
        private IEnumerable<ObjectDef> GetNewStatics(int _x, int _y)
        {
            return (from i in Sight.GetSightCircle(SightRadius)
                    let x = i.X + _x
                    let y = i.Y + _y
                    where x >= 0 && x < _mapWidth && y >= 0 && y < _mapHeight
                    let tile = Owner.Map[x, y]
                    where tile.ObjId != 0 && tile.ObjType != 0 && _clientStatic.Add(new IntPoint(x, y))
                    select tile.ToDef(x, y)).ToList();
        }