forked from KaBooMa/S1API
-
-
Notifications
You must be signed in to change notification settings - Fork 28
[FEATURE] Expose NPC.CurrentBuilding #242
Copy link
Copy link
Closed
Labels
LowVery minor issue, non gameplay hindering, fix all high prio firstVery minor issue, non gameplay hindering, fix all high prio firstenhancementNew feature or requestNew feature or request
Milestone
Description
Metadata
Metadata
Assignees
Labels
LowVery minor issue, non gameplay hindering, fix all high prio firstVery minor issue, non gameplay hindering, fix all high prio firstenhancementNew feature or requestNew feature or request
What would you like to see?
Add a read-only
NPC.CurrentBuildingproperty returningS1API.Map.Building?.Why would this help?
Location-aware dialogue, schedules, quests, and world mods need to know which enterable building currently contains an NPC. The native property still exists, but mods cannot access it through S1API.
Extra Context (Optional)
The original TODO's blocker is gone because
S1API.Map.Buildingnow wraps the nativeNPCEnterableBuilding. Keep this property read-only so native enter/exit methods retain lifecycle ownership.