|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#ifndef OPENMW_OBJECTAPI_HPP
|
|
|
|
|
#define OPENMW_OBJECTAPI_HPP
|
|
|
|
|
|
|
|
|
|
#include <Script/Platform.hpp>
|
|
|
|
|
#include "../api.h"
|
|
|
|
|
|
|
|
|
|
#define OBJECTAPI \
|
|
|
|
|
{"ReadReceivedObjectList", ObjectFunctions::ReadReceivedObjectList},\
|
|
|
|
@ -138,21 +138,20 @@
|
|
|
|
|
{"SetObjectRefNumIndex", ObjectFunctions::SetObjectRefNumIndex},\
|
|
|
|
|
{"AddWorldObject", ObjectFunctions::AddWorldObject}
|
|
|
|
|
|
|
|
|
|
namespace ObjectFunctions
|
|
|
|
|
{
|
|
|
|
|
NAMESPACE_BEGIN(ObjectFunctions)
|
|
|
|
|
/**
|
|
|
|
|
* \brief Use the last object list received by the server as the one being read.
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ReadReceivedObjectList() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL ReadReceivedObjectList() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Clear the data from the object list stored on the server.
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ClearObjectList() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL ClearObjectList() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the pid attached to the ObjectList.
|
|
|
|
@ -160,7 +159,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param pid The player ID to whom the object list should be attached.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListPid(unsigned short pid) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectListPid(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Take the contents of the read-only object list last received by the
|
|
|
|
@ -169,14 +168,14 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL CopyReceivedObjectListToStore() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL CopyReceivedObjectListToStore() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the number of indexes in the read object list.
|
|
|
|
|
*
|
|
|
|
|
* \return The number of indexes.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectListSize() noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectListSize() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the origin of the read object list.
|
|
|
|
@ -185,7 +184,7 @@ namespace ObjectFunctions
|
|
|
|
|
* CLIENT_DIALOGUE, 3 for CLIENT_SCRIPT_LOCAL, 4 for CLIENT_SCRIPT_GLOBAL,
|
|
|
|
|
* 5 for SERVER_SCRIPT).
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetObjectListOrigin() noexcept;
|
|
|
|
|
API_FUNCTION unsigned char CDECL GetObjectListOrigin() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the client script that the read object list originated from.
|
|
|
|
@ -194,21 +193,21 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return The ID of the client script.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectListClientScript() noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectListClientScript() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the action type used in the read object list.
|
|
|
|
|
*
|
|
|
|
|
* \return The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST).
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetObjectListAction() noexcept;
|
|
|
|
|
API_FUNCTION unsigned char CDECL GetObjectListAction() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the container subaction type used in the read object list.
|
|
|
|
|
*
|
|
|
|
|
* \return The action type (0 for NONE, 1 for DRAG, 2 for DROP, 3 for TAKE_ALL).
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetObjectListContainerSubAction() noexcept;
|
|
|
|
|
API_FUNCTION unsigned char CDECL GetObjectListContainerSubAction() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list is a
|
|
|
|
@ -221,7 +220,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object is a player.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL IsObjectPlayer(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL IsObjectPlayer(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the player ID of the object at a certain index in the read object list,
|
|
|
|
@ -233,7 +232,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the object.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectPid(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectPid(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refId of the object at a certain index in the read object list.
|
|
|
|
@ -241,7 +240,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectRefId(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectRefId(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refNum of the object at a certain index in the read object list.
|
|
|
|
@ -249,7 +248,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectRefNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectRefNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the mpNum of the object at a certain index in the read object list.
|
|
|
|
@ -257,7 +256,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectMpNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectMpNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the count of the object at a certain index in the read object list.
|
|
|
|
@ -265,7 +264,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object count.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectCount(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectCount(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the charge of the object at a certain index in the read object list.
|
|
|
|
@ -273,7 +272,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The charge.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectCharge(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectCharge(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the enchantment charge of the object at a certain index in the read object list.
|
|
|
|
@ -281,7 +280,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The enchantment charge.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectEnchantmentCharge(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectEnchantmentCharge(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the soul of the object at a certain index in the read object list.
|
|
|
|
@ -289,7 +288,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The soul.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectSoul(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectSoul(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the gold value of the object at a certain index in the read object list.
|
|
|
|
@ -299,7 +298,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The gold value.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectGoldValue(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectGoldValue(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the object scale of the object at a certain index in the read object list.
|
|
|
|
@ -307,7 +306,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object scale.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectScale(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectScale(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the object state of the object at a certain index in the read object list.
|
|
|
|
@ -315,7 +314,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object state.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL GetObjectState(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL GetObjectState(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the door state of the object at a certain index in the read object list.
|
|
|
|
@ -323,7 +322,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The door state.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectDoorState(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectDoorState(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the lock level of the object at a certain index in the read object list.
|
|
|
|
@ -331,7 +330,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The lock level.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectLockLevel(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectLockLevel(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list has been
|
|
|
|
@ -340,7 +339,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object has been activated by a player.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL DoesObjectHavePlayerActivating(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL DoesObjectHavePlayerActivating(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the player ID of the player activating the object at a certain index in the
|
|
|
|
@ -349,7 +348,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the activating player.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectActivatingPid(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectActivatingPid(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refId of the actor activating the object at a certain index in the read
|
|
|
|
@ -358,7 +357,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectActivatingRefId(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectActivatingRefId(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refNum of the actor activating the object at a certain index in the read
|
|
|
|
@ -367,7 +366,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectActivatingRefNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectActivatingRefNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the mpNum of the actor activating the object at a certain index in the read
|
|
|
|
@ -376,7 +375,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectActivatingMpNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectActivatingMpNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the name of the actor activating the object at a certain index in the read
|
|
|
|
@ -385,7 +384,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The name of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectActivatingName(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectActivatingName(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list is a
|
|
|
|
@ -395,7 +394,7 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return The summon state.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL GetObjectSummonState(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL GetObjectSummonState(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the summon duration of the object at a certain index in the read object list.
|
|
|
|
@ -405,7 +404,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The summon duration.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectSummonDuration(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectSummonDuration(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list has a player
|
|
|
|
@ -416,7 +415,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether a player is the summoner of the object.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL DoesObjectHavePlayerSummoner(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL DoesObjectHavePlayerSummoner(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the player ID of the summoner of the object at a certain index in the read object
|
|
|
|
@ -425,7 +424,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetObjectSummonerPid(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetObjectSummonerPid(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refId of the actor summoner of the object at a certain index in the read object
|
|
|
|
@ -434,7 +433,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetObjectSummonerRefId(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetObjectSummonerRefId(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refNum of the actor summoner of the object at a certain index in the read object
|
|
|
|
@ -443,7 +442,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerRefNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectSummonerRefNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the mpNum of the actor summoner of the object at a certain index in the read object list.
|
|
|
|
@ -451,7 +450,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerMpNum(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectSummonerMpNum(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the X position of the object at a certain index in the read object list.
|
|
|
|
@ -459,7 +458,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The X position.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectPosX(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectPosX(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the Y position of the object at a certain index in the read object list.
|
|
|
|
@ -467,7 +466,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Y position.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectPosY(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectPosY(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the Z position at a certain index in the read object list.
|
|
|
|
@ -475,7 +474,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Z position.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectPosZ(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectPosZ(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the X rotation of the object at a certain index in the read object list.
|
|
|
|
@ -483,7 +482,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The X rotation.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectRotX(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectRotX(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the Y rotation of the object at a certain index in the read object list.
|
|
|
|
@ -491,7 +490,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Y rotation.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectRotY(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectRotY(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the Z rotation of the object at a certain index in the read object list.
|
|
|
|
@ -499,14 +498,14 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Z rotation.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectRotZ(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetObjectRotZ(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the videoFilename of the object at a certain index in the read object list.
|
|
|
|
|
*
|
|
|
|
|
* \return The videoFilename.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetVideoFilename(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetVideoFilename(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the number of container item indexes of the object at a certain index in the
|
|
|
|
@ -515,7 +514,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The number of container item indexes.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetContainerChangesSize(unsigned int objectIndex) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetContainerChangesSize(unsigned int objectIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the refId of the container item at a certain itemIndex in the container changes
|
|
|
|
@ -525,7 +524,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The refId.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetContainerItemRefId(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetContainerItemRefId(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the item count of the container item at a certain itemIndex in the container
|
|
|
|
@ -535,7 +534,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The item count.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetContainerItemCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetContainerItemCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the charge of the container item at a certain itemIndex in the container changes
|
|
|
|
@ -545,7 +544,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The charge.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetContainerItemCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetContainerItemCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the enchantment charge of the container item at a certain itemIndex in the container changes
|
|
|
|
@ -555,7 +554,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The enchantment charge.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetContainerItemEnchantmentCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION double CDECL GetContainerItemEnchantmentCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the soul of the container item at a certain itemIndex in the container changes
|
|
|
|
@ -565,7 +564,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The soul.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION const char *CDECL GetContainerItemSoul(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION const char *CDECL GetContainerItemSoul(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the action count of the container item at a certain itemIndex in the container
|
|
|
|
@ -575,7 +574,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The action count.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION int CDECL GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
API_FUNCTION int CDECL GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list has a container.
|
|
|
|
@ -586,7 +585,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object has a container.
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL DoesObjectHaveContainer(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION bool CDECL DoesObjectHaveContainer(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the cell of the temporary object list stored on the server.
|
|
|
|
@ -597,7 +596,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param cellDescription The description of the cell.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListCell(const char* cellDescription) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectListCell(const char* cellDescription) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the action type of the temporary object list stored on the server.
|
|
|
|
@ -605,7 +604,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param action The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListAction(unsigned char action) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectListAction(unsigned char action) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the console command of the temporary object list stored on the server.
|
|
|
|
@ -616,7 +615,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param consoleCommand The console command.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectListConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refId of the temporary object stored on the server.
|
|
|
|
@ -624,7 +623,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param refId The refId.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRefId(const char* refId) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectRefId(const char* refId) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refNum of the temporary object stored on the server.
|
|
|
|
@ -638,7 +637,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param refNum The refNum.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRefNum(int refNum) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectRefNum(int refNum) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the mpNum of the temporary object stored on the server.
|
|
|
|
@ -653,7 +652,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param mpNum The mpNum.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectMpNum(int mpNum) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectMpNum(int mpNum) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the object count of the temporary object stored on the server.
|
|
|
|
@ -663,7 +662,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param count The object count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectCount(int count) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectCount(int count) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the charge of the temporary object stored on the server.
|
|
|
|
@ -673,7 +672,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param charge The charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectCharge(int charge) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectCharge(int charge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the enchantment charge of the temporary object stored on the server.
|
|
|
|
@ -683,7 +682,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param charge The enchantment charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the soul of the temporary object stored on the server.
|
|
|
|
@ -691,7 +690,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param refId The soul.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSoul(const char* soul) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectSoul(const char* soul) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the gold value of the temporary object stored on the server.
|
|
|
|
@ -701,7 +700,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param goldValue The gold value.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectGoldValue(int goldValue) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectGoldValue(int goldValue) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the scale of the temporary object stored on the server.
|
|
|
|
@ -711,7 +710,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param scale The scale.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectScale(double scale) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectScale(double scale) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the object state of the temporary object stored on the server.
|
|
|
|
@ -721,7 +720,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param objectState The object state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectState(bool objectState) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectState(bool objectState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the lock level of the temporary object stored on the server.
|
|
|
|
@ -729,7 +728,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param lockLevel The lock level.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectLockLevel(int lockLevel) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectLockLevel(int lockLevel) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the summon duration of the temporary object stored on the server.
|
|
|
|
@ -737,7 +736,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param summonDuration The summon duration.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSummonDuration(float summonDuration) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectSummonDuration(float summonDuration) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the disarm state of the temporary object stored on the server.
|
|
|
|
@ -745,7 +744,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param disarmState The disarmState.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDisarmState(bool disarmState) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDisarmState(bool disarmState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the summon state of the temporary object stored on the server.
|
|
|
|
@ -756,7 +755,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param summonState The summon state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSummonState(bool summonState) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectSummonState(bool summonState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the position of the temporary object stored on the server.
|
|
|
|
@ -766,7 +765,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param z The Z position.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectPosition(double x, double y, double z) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectPosition(double x, double y, double z) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the rotation of the temporary object stored on the server.
|
|
|
|
@ -776,7 +775,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param z The Z rotation.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRotation(double x, double y, double z) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectRotation(double x, double y, double z) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the player ID of the player activating the temporary object stored on the
|
|
|
|
@ -785,7 +784,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param pid The pid of the player.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectActivatingPid(unsigned short pid) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectActivatingPid(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door state of the temporary object stored on the server.
|
|
|
|
@ -795,7 +794,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param doorState The door state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorState(int doorState) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDoorState(int doorState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the teleport state of the temporary object stored on the server.
|
|
|
|
@ -806,7 +805,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param teleportState The teleport state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorTeleportState(bool teleportState) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDoorTeleportState(bool teleportState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door destination cell of the temporary object stored on the server.
|
|
|
|
@ -817,7 +816,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param cellDescription The description of the cell.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorDestinationCell(const char* cellDescription) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDoorDestinationCell(const char* cellDescription) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door destination position of the temporary object stored on the server.
|
|
|
|
@ -827,7 +826,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param z The Z position.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorDestinationPosition(double x, double y, double z) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDoorDestinationPosition(double x, double y, double z) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door destination rotation of the temporary object stored on the server.
|
|
|
|
@ -839,7 +838,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param z The Z rotation.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorDestinationRotation(double x, double z) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectDoorDestinationRotation(double x, double z) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set a player as the object in the temporary object stored on the server.
|
|
|
|
@ -848,7 +847,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param pid The pid of the player.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetPlayerAsObject(unsigned short pid) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetPlayerAsObject(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refId of the temporary container item stored on the server.
|
|
|
|
@ -856,7 +855,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param refId The refId.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemRefId(const char* refId) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemRefId(const char* refId) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the item count of the temporary container item stored on the server.
|
|
|
|
@ -864,7 +863,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param count The item count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemCount(int count) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemCount(int count) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the charge of the temporary container item stored on the server.
|
|
|
|
@ -872,7 +871,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param charge The charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemCharge(int charge) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemCharge(int charge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the enchantment charge of the temporary container item stored on the server.
|
|
|
|
@ -880,7 +879,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param charge The enchantment charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the soul of the temporary container item stored on the server.
|
|
|
|
@ -888,7 +887,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param refId The soul.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemSoul(const char* soul) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemSoul(const char* soul) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the action count of the container item at a certain itemIndex in the container
|
|
|
|
@ -903,7 +902,7 @@ namespace ObjectFunctions
|
|
|
|
|
* \param actionCount The action count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemActionCountByIndex(unsigned int objectIndex, unsigned int itemIndex, int actionCount) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetContainerItemActionCountByIndex(unsigned int objectIndex, unsigned int itemIndex, int actionCount) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Add a copy of the server's temporary object to the server's currently stored object
|
|
|
|
@ -914,7 +913,7 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL AddObject() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL AddObject() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Add a copy of the server's temporary container item to the container changes of the
|
|
|
|
@ -925,7 +924,7 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL AddContainerItem() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL AddContainerItem() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectActivate packet.
|
|
|
|
@ -936,7 +935,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectActivate(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectActivate(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectPlace packet.
|
|
|
|
@ -947,7 +946,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectPlace(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectPlace(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectSpawn packet.
|
|
|
|
@ -958,7 +957,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectSpawn(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectSpawn(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectDelete packet.
|
|
|
|
@ -968,7 +967,7 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectDelete(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectDelete(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectLock packet.
|
|
|
|
@ -979,7 +978,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectLock(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectLock(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectTrap packet.
|
|
|
|
@ -989,7 +988,7 @@ namespace ObjectFunctions
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectTrap(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectTrap(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectScale packet.
|
|
|
|
@ -1000,7 +999,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectScale(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectScale(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectState packet.
|
|
|
|
@ -1011,7 +1010,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendObjectState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a DoorState packet.
|
|
|
|
@ -1022,7 +1021,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendDoorState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendDoorState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a DoorDestination packet.
|
|
|
|
@ -1033,7 +1032,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendDoorDestination(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendDoorDestination(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a Container packet.
|
|
|
|
@ -1044,7 +1043,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendContainer(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendContainer(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a VideoPlay packet.
|
|
|
|
@ -1055,7 +1054,7 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendVideoPlay(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendVideoPlay(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a ConsoleCommand packet.
|
|
|
|
@ -1066,27 +1065,27 @@ namespace ObjectFunctions
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendConsoleCommand(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SendConsoleCommand(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// All methods below are deprecated versions of methods from above
|
|
|
|
|
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ReadLastObjectList() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ReadLastEvent() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL InitializeObjectList(unsigned short pid) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL InitializeEvent(unsigned short pid) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL CopyLastObjectListToStore() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectChangesSize() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetEventAction() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetEventContainerSubAction() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetEventCell(const char* cellDescription) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetEventAction(unsigned char action) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetEventConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRefNumIndex(int refNum) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL AddWorldObject() noexcept;
|
|
|
|
|
}
|
|
|
|
|
API_FUNCTION void CDECL ReadLastObjectList() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL ReadLastEvent() noexcept;
|
|
|
|
|
API_FUNCTION void CDECL InitializeObjectList(unsigned short pid) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL InitializeEvent(unsigned short pid) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL CopyLastObjectListToStore() noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectChangesSize() noexcept;
|
|
|
|
|
API_FUNCTION unsigned char CDECL GetEventAction() noexcept;
|
|
|
|
|
API_FUNCTION unsigned char CDECL GetEventContainerSubAction() noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION unsigned int CDECL GetObjectSummonerRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetEventCell(const char* cellDescription) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetEventAction(unsigned char action) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetEventConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL SetObjectRefNumIndex(int refNum) noexcept;
|
|
|
|
|
API_FUNCTION void CDECL AddWorldObject() noexcept;
|
|
|
|
|
NAMESPACE_END()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_OBJECTAPI_HPP
|