1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 18:09:39 +00:00

[Server] Add script function for setting Container subactions

This commit is contained in:
David Cernat 2020-10-16 09:13:22 +02:00
parent 68837aaf4a
commit ea2ea4d382
2 changed files with 15 additions and 0 deletions

View file

@ -430,6 +430,11 @@ void ObjectFunctions::SetObjectListAction(unsigned char action) noexcept
writeObjectList.action = action;
}
void ObjectFunctions::SetObjectListContainerSubAction(unsigned char containerSubAction) noexcept
{
writeObjectList.containerSubAction = containerSubAction;
}
void ObjectFunctions::SetObjectListConsoleCommand(const char* consoleCommand) noexcept
{
writeObjectList.consoleCommand = consoleCommand;

View file

@ -91,6 +91,7 @@
\
{"SetObjectListCell", ObjectFunctions::SetObjectListCell},\
{"SetObjectListAction", ObjectFunctions::SetObjectListAction},\
{"SetObjectListContainerSubAction", ObjectFunctions::SetObjectListContainerSubAction},\
{"SetObjectListConsoleCommand", ObjectFunctions::SetObjectListConsoleCommand},\
\
{"SetObjectRefId", ObjectFunctions::SetObjectRefId},\
@ -854,6 +855,15 @@ public:
*/
static void SetObjectListAction(unsigned char action) noexcept;
/**
* \brief Set the container subaction type of the temporary object list stored on the server.
*
* \param action The action type (0 for NONE, 1 for DRAG, 2 for DROP, 3 for TAKE_ALL,
* 4 for REPLY_TO_REQUEST, 5 for RESTOCK_RESULT).
* \return void
*/
static void SetObjectListContainerSubAction(unsigned char subAction) noexcept;
/**
* \brief Set the console command of the temporary object list stored on the server.
*