Skip to content

Commit

Permalink
Update APIs (NWNX: 2f18b7c, NWN: 8193.37-14).
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Feb 6, 2025
1 parent 02a05a2 commit 80a1108
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions NWN.Core/src/NWNX/Plugins/PlayerPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,16 @@ public static void ReloadColorPalettes(uint oPlayer)
NWNXCall(NWNX_Player, "ReloadColorPalettes");
}

/// Get the current open store of oPlayer.
/// <param name="oPlayer">The player.</param>
/// <returns>The open store or OBJECT_INVALID if no store is open.</returns>
public static uint GetOpenStore(uint oPlayer)
{
NWNXPushObject(oPlayer);
NWNXCall(NWNX_Player, "GetOpenStore");
return NWNXPopObject();
}

// @}
public static void INTERNAL_StopGuiTimingBar(uint player, string script = "", int id = -1)
{
Expand Down

0 comments on commit 80a1108

Please sign in to comment.