diff --git a/S1API/Entities/NPC.cs b/S1API/Entities/NPC.cs index a3118886..ff8bbc5e 100644 --- a/S1API/Entities/NPC.cs +++ b/S1API/Entities/NPC.cs @@ -2797,8 +2797,19 @@ public bool RequiresRegionUnlocked #endif } - // TODO: Add CurrentBuilding (currently missing NPCEnterableBuilding abstraction) - // public ??? CurrentBuilding { get; set; } + /// + /// The enterable building the NPC is currently in, if any. + /// + public Map.Building? CurrentBuilding + { + get + { + object? currentBuilding = S1NPC.CurrentBuilding; + return currentBuilding == null + ? null + : Map.Building.All.FirstOrDefault(building => ReferenceEquals(building._gameBuilding, currentBuilding)); + } + } /// /// The current vehicle the NPC is occupying, if any.