Initial commit

Initial commit.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-06-13 15:08:33 -04:00
parent c0bd67a6a7
commit a6f6db7303
5236 changed files with 4203994 additions and 0 deletions

23
_module/nss/nwnx_ruby.nss Normal file
View File

@@ -0,0 +1,23 @@
/// @addtogroup ruby Ruby
/// @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);
/// @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(sCode);
NWNX_CallFunction(NWNX_Ruby, sFunc);
return NWNX_GetReturnValueString();
}
/// @}