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:
parent
68837aaf4a
commit
ea2ea4d382
2 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue