House Layout Finder

Provides and compares images for House Viewer.


THouseLayoutFinder

Main record used to interact with the House Viewer.


HouseLayoutFinder.Setup

procedure THouseLayoutFinder.Setup();

Sets up the THouseLayoutFinder similarity.

Example:

HouseLayoutFinder.Setup();

HouseLayoutFinder.GetImages

function THouseLayoutFinder.GetImages(room: EHouseRoom): TImageArray;

Retrieves the images for a specific room, as the 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 EHouseRoom value.

Example:

img := HouseLayoutFinder.GetImage(EHouseRoom.ACHIEVEMENT_GALLERY)[0];
img.Show();

HouseLayoutFinder variable

Global THouseLayoutFinder variable.