pub fn look_for_at_area<T>(&self, ty: T, horiz: Range<u8>, vert: Range<u8>) -> Vec<T::Item>
    where
        T: LookConstant,
    {
        assert!(horiz.start <= horiz.end);
        assert!(vert.start <= vert.end);
        assert!(horiz.end <= 50);
        assert!(vert.end <= 50);

        T::convert_and_check_items(js_unwrap!{@{self.as_ref()}.lookForAtArea(
            __look_num_to_str(@{ty.look_code() as u32}),
            @{vert.start},
            @{horiz.start},
            @{vert.end},
            @{horiz.end},
            true
        ).map((obj) => obj[__look_num_to_str(@{ty.look_code() as u32})])})
    }
/// Looks for a given thing over a given area of bounds.
///
/// To keep with `Range` convention, the start is inclusive, and the end
/// is _exclusive_.
///
/// Note: to ease the implementation and efficiency of the rust interface, this is limited to
/// returning an array of values without their positions. If position data is needed, all room
/// objects *should* contain positions alongside them. (for terrain data, I would recommend
/// using a different method?)
///
/// If you really do need more information here, I would recommend making a PR to add it!
///
/// # Panics
///
/// Panics if start>end for either range, or if end>50 for either range.
///
/// # Examples
///
/// ```ignore
/// use screeps::constants::look;
/// room.look_for_at_area(look::ENERGY, 20..26, 20..26)
/// ```
Looks for a given thing over a given area of bounds.
To keep with `Range` convention, the start is inclusive, and the end
is _exclusive_.

to ease the implementation and efficiency of the rust interface, this is limited to
returning an array of values without their positions. If position data is needed, all room
objects *should* contain positions alongside them. (for terrain data, I would recommend
using a different method?)

If you really do need more information here, I would recommend making a PR to add it!
Looks for a given thing over a given area of bounds . To keep with ` Range ` convention the start is inclusive and the end is _exclusive_ . to ease the implementation and efficiency of the rust interface this is limited to returning an array of values without their positions . If position data is needed all room objects * should * contain positions alongside them . ( for terrain data I would recommend using a different method? ) If you really do need more information here I would recommend making a PR to add it!
pub fn look_for_at_area<T>(&self, ty: T, horiz: Range<u8>, vert: Range<u8>) -> Vec<T::Item>
    where
        T: LookConstant,
    {
        assert!(horiz.start <= horiz.end);
        assert!(vert.start <= vert.end);
        assert!(horiz.end <= 50);
        assert!(vert.end <= 50);
        T::convert_and_check_items(js_unwrap!{@{self.as_ref()}.lookForAtArea(
            __look_num_to_str(@{ty.look_code() as u32}),
            @{vert.start},
            @{horiz.start},
            @{vert.end},
            @{horiz.end},
            true
        ).map((obj) => obj[__look_num_to_str(@{ty.look_code() as u32})])})
    }
pub fn look_for_at_area < T > ( & self , ty : T , horiz : Range < u8 > , vert : Range < u8 > ) -> Vec < T :: Item > where T : LookConstant , { assert ! ( horiz start horiz end ) ; assert ! ( vert start vert end ) ; assert ! ( horiz end 50 ) ; assert ! ( vert end 50 ) ; T :: convert_and_check_items ( js_unwrap ! { { self as_ref ( ) } lookForAtArea ( __look_num_to_str ( { ty look_code ( ) as u32 } ) { vert start } { horiz start } { vert end } { horiz end } true ) map ( ( obj ) obj [ __look_num_to_str ( { ty look_code ( ) as u32 } ) ] ) } ) }
Looks for a given thing over a given area of bounds.
Looks for a given thing over a given area of bounds .
&self
ty
T
horiz
Range<u8>
vert
Range<u8>
&self
ty
T
horiz
Range<u8>
vert
Range<u8>
panics
Panics if start>end for either range, or if end>50 for either range.
Panics if start > end for either range or if end > 50 for either range .
examples
None