Line 247: |
Line 247: |
| <tt>LocationEvents</tt> are raised when the player transitions between game locations, a location is added or removed, or the objects in the current location change. | | <tt>LocationEvents</tt> are raised when the player transitions between game locations, a location is added or removed, or the objects in the current location change. |
| | | |
− | {| class="wikitable" | + | '''In SMAPI 2.6-beta.5 or earlier:''' |
| + | :{| class="wikitable" |
| |- | | |- |
| ! event !! summary | | ! event !! summary |
Line 253: |
Line 254: |
| | CurrentLocationChanged || Raised after the player warps to a new location. Handlers are given the previous and new locations as arguments. | | | CurrentLocationChanged || Raised after the player warps to a new location. Handlers are given the previous and new locations as arguments. |
| |- | | |- |
− | | LocationObjectsChanged || '''[Obsolete in SMAPI 2.6-beta.6]''' Raised after the list of objects in the current location changes (e.g. an object is added or removed). Handlers are given the new list of objects as an argument. | + | | LocationObjectsChanged || Raised after the list of objects in the current location changes (e.g. an object is added or removed). Handlers are given the new list of objects as an argument. |
| |- | | |- |
| | LocationsChanged || Raised after a game location is added or removed. Handlers are passed the new list of locations as an argument. | | | LocationsChanged || Raised after a game location is added or removed. Handlers are passed the new list of locations as an argument. |
| + | |} |
| + | |
| + | {{SMAPI upcoming|2.6-beta.7}} |
| + | '''In SMAPI 2.6-beta.7 or later:''' |
| + | :{| class="wikitable" |
| |- | | |- |
− | | ObjectsChanged || {{SMAPI upcoming|2.6-beta.6|content=Raised after an object is added/removed in any location. Handlers are passed the location, a list of removed objects, and a list of added objects.}} | + | ! event !! summary |
| + | |- |
| + | | LocationsChanged || Raised after a game location is added or removed (including building interiors). Handlers are passed lists of added/removed locations. |
| + | |- |
| + | | BuildingsChanged || Raised after buildings is added/removed in any location. Handlers are given the location, and lists of added/removed buildings. |
| + | |- |
| + | | ObjectsChanged || Raised after objects are added/removed in any location (including building interiors). Handlers are given the location, and lists of added/removed objects. |
| |} | | |} |
| | | |