Line 458: |
Line 458: |
| |name = BuildingListChanged | | |name = BuildingListChanged |
| |desc = Raised after buildings are added/removed in any location. | | |desc = Raised after buildings are added/removed in any location. |
| + | |
| + | This event isn't raised for buildings already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added.OfType<BuildableGameLocation>()</tt> → <tt>buildings</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |
Line 479: |
Line 481: |
| |name = DebrisListChanged | | |name = DebrisListChanged |
| |desc = Raised after debris is added/removed in any location (including dropped or spawned floating items). | | |desc = Raised after debris is added/removed in any location (including dropped or spawned floating items). |
| + | |
| + | This event isn't raised for debris already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>debris</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |
Line 501: |
Line 505: |
| |name = LargeTerrainFeatureListChanged | | |name = LargeTerrainFeatureListChanged |
| |desc = Raised after large terrain features (like bushes) are added/removed in any location. | | |desc = Raised after large terrain features (like bushes) are added/removed in any location. |
| + | |
| + | This event isn't raised for large terrain features already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>largeTerrainFeatures</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |
Line 522: |
Line 528: |
| |name = NpcListChanged | | |name = NpcListChanged |
| |desc = Raised after NPCs are added/removed in any location (including villagers, horses, Junimos, monsters, and pets). | | |desc = Raised after NPCs are added/removed in any location (including villagers, horses, Junimos, monsters, and pets). |
| + | |
| + | This event isn't raised for characters already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>characters</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |
Line 543: |
Line 551: |
| |name = ObjectListChanged | | |name = ObjectListChanged |
| |desc = Raised after objects are added/removed in any location (including machines, furniture, fences, etc). For floating items, see <tt>DebrisListChanged</tt>. | | |desc = Raised after objects are added/removed in any location (including machines, furniture, fences, etc). For floating items, see <tt>DebrisListChanged</tt>. |
| + | |
| + | This event isn't raised for objects already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>objects</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |
Line 564: |
Line 574: |
| |name = TerrainFeatureListChanged | | |name = TerrainFeatureListChanged |
| |desc = Raised after terrain features are added/removed in any location (including trees, hoed dirt, and flooring). For bushes, see <tt>LargeTerrainFeatureListChanged</tt>. | | |desc = Raised after terrain features are added/removed in any location (including trees, hoed dirt, and flooring). For bushes, see <tt>LargeTerrainFeatureListChanged</tt>. |
| + | |
| + | This event isn't raised for terrain features already present when a location is added. If you need to handle those too, use [[#World.LocationListChanged|<tt>LocationListChanged</tt>]] and check <tt>e.Added</tt> → <tt>terrainFeatures</tt>. |
| | | |
| |arg name 1 = <tt>e.Location</tt> | | |arg name 1 = <tt>e.Location</tt> |