mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
[Server] Add script function for setting Container subactions
This commit is contained in:
parent
68837aaf4a
commit
ea2ea4d382
@ -430,6 +430,11 @@ void ObjectFunctions::SetObjectListAction(unsigned char action) noexcept
|
|||||||
writeObjectList.action = action;
|
writeObjectList.action = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectFunctions::SetObjectListContainerSubAction(unsigned char containerSubAction) noexcept
|
||||||
|
{
|
||||||
|
writeObjectList.containerSubAction = containerSubAction;
|
||||||
|
}
|
||||||
|
|
||||||
void ObjectFunctions::SetObjectListConsoleCommand(const char* consoleCommand) noexcept
|
void ObjectFunctions::SetObjectListConsoleCommand(const char* consoleCommand) noexcept
|
||||||
{
|
{
|
||||||
writeObjectList.consoleCommand = consoleCommand;
|
writeObjectList.consoleCommand = consoleCommand;
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
\
|
\
|
||||||
{"SetObjectListCell", ObjectFunctions::SetObjectListCell},\
|
{"SetObjectListCell", ObjectFunctions::SetObjectListCell},\
|
||||||
{"SetObjectListAction", ObjectFunctions::SetObjectListAction},\
|
{"SetObjectListAction", ObjectFunctions::SetObjectListAction},\
|
||||||
|
{"SetObjectListContainerSubAction", ObjectFunctions::SetObjectListContainerSubAction},\
|
||||||
{"SetObjectListConsoleCommand", ObjectFunctions::SetObjectListConsoleCommand},\
|
{"SetObjectListConsoleCommand", ObjectFunctions::SetObjectListConsoleCommand},\
|
||||||
\
|
\
|
||||||
{"SetObjectRefId", ObjectFunctions::SetObjectRefId},\
|
{"SetObjectRefId", ObjectFunctions::SetObjectRefId},\
|
||||||
@ -854,6 +855,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
static void SetObjectListAction(unsigned char action) noexcept;
|
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.
|
* \brief Set the console command of the temporary object list stored on the server.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user