Updated for NWNEE 37-13

Updated for NWNEE 37-13.  Updated NWNxEE.  Full compile. Updated release archive.
This commit is contained in:
Jaysyn904
2025-01-10 20:29:31 -05:00
parent a8639499df
commit 82994dfc26
447 changed files with 10620 additions and 6020 deletions

View File

@@ -2,22 +2,19 @@
/// @brief Allows users to execute arbitrary Ruby from the game.
/// @{
/// @file nwnx_ruby.nss
#include "nwnx"
const string NWNX_Ruby = "NWNX_Ruby"; ///< @private
string NWNX_Ruby_Evaluate (string sCode);
string NWNX_Ruby_Evaluate(string sCode);
/// @brief Evaluates some ruby code.
/// @param sCode The code to evaluate.
/// @return The output of the call.
string NWNX_Ruby_Evaluate(string sCode)
{
string sFunc = "Evaluate";
NWNX_PushArgumentString (NWNX_Ruby, sFunc, sCode);
NWNX_CallFunction (NWNX_Ruby, sFunc);
return NWNX_GetReturnValueString (NWNX_Ruby, sFunc);
NWNXPushString(sCode);
NWNXCall(NWNX_Ruby, "Evaluate");
return NWNXPopString();
}
/// @}