agilbert1412 / StardewArchipelago

Archipelago Implementation for Stardew Valley
11 stars 12 forks source link

Add Building Warps to Game Locations; Re-based #50

Closed madolinn closed 4 months ago

madolinn commented 4 months ago

Original: https://github.com/agilbert1412/StardewArchipelago/pull/45

Add GetBuildingWarps to GameLocationExtensions.

Checks if the GameLocation (Origin) you are in has a buildings list and determines if those buildings conversely have any warps that would have you end up in the Origin, and returning a list of (any) paired points of the warp.

Building interiors must have been instantiated for their warp points to be built. This should be the case in all properly created circumstances.

Uses NameOrUniqueName as instanced buildings/locations can have UUIDs appended. Multiple barns, as an example.