# House Layout Finder Provides and compares images for {ref}`House Viewer`. - - - ## THouseLayoutFinder Main record used to interact with the {ref}`House Viewer`. - - - ## HouseLayoutFinder.Setup ```pascal procedure THouseLayoutFinder.Setup(); ``` Sets up the {ref}`THouseLayoutFinder` similarity. Example: ```pascal HouseLayoutFinder.Setup(); ``` - - - ## HouseLayoutFinder.GetImages ```pascal function THouseLayoutFinder.GetImages(room: EHouseRoom): TImageArray; ``` Retrieves the images for a specific `room`, as the {ref}`House Viewer` draws them. This returns a `TImageArray` with 4 images, one for each possible rotation. `EHouseRoom.UNKNOWN` has no image and returns an empty array. The images are read from the game cache the first time a room is asked for and kept in memory after that. The house viewer picks each room's image from an enum keyed by the room's type, which is not the same as its {ref}`EHouseRoom` value. Example: ```pascal img := HouseLayoutFinder.GetImage(EHouseRoom.ACHIEVEMENT_GALLERY)[0]; img.Show(); ``` - - - ## HouseLayoutFinder variable Global {ref}`THouseLayoutFinder` variable.