Added ACP 4.1

Added ACP 4.1.  Updated NWNxEE.  Re-enabled Discord webhooks.  Full compile.
This commit is contained in:
Jaysyn904
2024-09-08 17:26:15 -04:00
parent 61fe2186a1
commit 74a1eb1328
734 changed files with 1478 additions and 16 deletions

View File

@@ -65,6 +65,12 @@ void NWNX_SQL_PreparedObjectFull(int position, object value, int base64 = TRUE);
/// @param position The nth ? in a prepared statement.
void NWNX_SQL_PreparedNULL(int position);
/// @brief Set the Json value of a prepared statement at given position.
/// Convienence function to match other Prepared(type) functions.
/// @param position The nth ? in a prepared statement.
/// @param value The value to set.
void NWNX_SQL_PreparedJson(int position, json value);
/// @brief Like NWNX_SQL_ReadDataInActiveRow, but for full serialized objects.
///
/// The object will be deserialized and created in the game. New object ID is returned.
@@ -211,6 +217,12 @@ void NWNX_SQL_PreparedNULL(int position)
NWNX_PushArgumentInt(position);
NWNX_CallFunction(NWNX_SQL, sFunc);
}
void NWNX_SQL_PreparedJson(int position, json value)
{
// Dump to string and continue as a string from here.
// Famously assuming we're sent valid Json here.
NWNX_SQL_PreparedString(position, JsonDump(value));
}
object NWNX_SQL_ReadFullObjectInActiveRow(int column = 0, object owner = OBJECT_INVALID, float x = 0.0, float y = 0.0, float z = 0.0, int base64 = TRUE)