|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
#ifndef OPENMW_OBJECTAPI_HPP
|
|
|
|
|
#define OPENMW_OBJECTAPI_HPP
|
|
|
|
|
|
|
|
|
|
#include <Script/Platform.hpp>
|
|
|
|
|
|
|
|
|
|
#define OBJECTAPI \
|
|
|
|
|
{"ReadReceivedObjectList", ObjectFunctions::ReadReceivedObjectList},\
|
|
|
|
|
\
|
|
|
|
@ -136,23 +138,21 @@
|
|
|
|
|
{"SetObjectRefNumIndex", ObjectFunctions::SetObjectRefNumIndex},\
|
|
|
|
|
{"AddWorldObject", ObjectFunctions::AddWorldObject}
|
|
|
|
|
|
|
|
|
|
class ObjectFunctions
|
|
|
|
|
namespace ObjectFunctions
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Use the last object list received by the server as the one being read.
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void ReadReceivedObjectList() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ReadReceivedObjectList() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Clear the data from the object list stored on the server.
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void ClearObjectList() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL ClearObjectList() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the pid attached to the ObjectList.
|
|
|
|
@ -160,7 +160,7 @@ public:
|
|
|
|
|
* \param pid The player ID to whom the object list should be attached.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectListPid(unsigned short pid) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListPid(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Take the contents of the read-only object list last received by the
|
|
|
|
@ -169,14 +169,14 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void CopyReceivedObjectListToStore() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL CopyReceivedObjectListToStore() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the number of indexes in the read object list.
|
|
|
|
|
*
|
|
|
|
|
* \return The number of indexes.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectListSize() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned int CDECL GetObjectListSize() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the origin of the read object list.
|
|
|
|
@ -185,7 +185,7 @@ public:
|
|
|
|
|
* CLIENT_DIALOGUE, 3 for CLIENT_SCRIPT_LOCAL, 4 for CLIENT_SCRIPT_GLOBAL,
|
|
|
|
|
* 5 for SERVER_SCRIPT).
|
|
|
|
|
*/
|
|
|
|
|
static unsigned char GetObjectListOrigin() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetObjectListOrigin() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the client script that the read object list originated from.
|
|
|
|
@ -194,21 +194,21 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return The ID of the client script.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectListClientScript() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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).
|
|
|
|
|
*/
|
|
|
|
|
static unsigned char GetObjectListAction() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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).
|
|
|
|
|
*/
|
|
|
|
|
static unsigned char GetObjectListContainerSubAction() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION unsigned char CDECL GetObjectListContainerSubAction() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Check whether the object at a certain index in the read object list is a
|
|
|
|
@ -221,7 +221,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object is a player.
|
|
|
|
|
*/
|
|
|
|
|
static bool IsObjectPlayer(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +233,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the object.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectPid(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +241,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectRefId(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +249,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectRefNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +257,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectMpNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +265,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object count.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectCount(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +273,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The charge.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectCharge(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +281,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The enchantment charge.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectEnchantmentCharge(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +289,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The soul.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectSoul(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +299,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The gold value.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectGoldValue(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +307,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object scale.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectScale(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +315,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The object state.
|
|
|
|
|
*/
|
|
|
|
|
static bool GetObjectState(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +323,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The door state.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectDoorState(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +331,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The lock level.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectLockLevel(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +340,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object has been activated by a player.
|
|
|
|
|
*/
|
|
|
|
|
static bool DoesObjectHavePlayerActivating(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +349,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the activating player.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectActivatingPid(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +358,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectActivatingRefId(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +367,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectActivatingRefNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +376,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectActivatingMpNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +385,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The name of the activating actor.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectActivatingName(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +395,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return The summon state.
|
|
|
|
|
*/
|
|
|
|
|
static bool GetObjectSummonState(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +405,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The summon duration.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectSummonDuration(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +416,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether a player is the summoner of the object.
|
|
|
|
|
*/
|
|
|
|
|
static bool DoesObjectHavePlayerSummoner(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +425,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The player ID of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
static int GetObjectSummonerPid(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +434,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refId of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetObjectSummonerRefId(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +443,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The refNum of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectSummonerRefNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +451,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The mpNum of the summoner.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetObjectSummonerMpNum(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +459,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The X position.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectPosX(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +467,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Y position.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectPosY(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION double CDECL GetObjectPosY(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Get the Z position at a certain index in the read object list.
|
|
|
|
@ -475,7 +475,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Z position.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectPosZ(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +483,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The X rotation.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectRotX(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +491,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Y rotation.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectRotY(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +499,14 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The Z rotation.
|
|
|
|
|
*/
|
|
|
|
|
static double GetObjectRotZ(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetVideoFilename(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +515,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return The number of container item indexes.
|
|
|
|
|
*/
|
|
|
|
|
static unsigned int GetContainerChangesSize(unsigned int objectIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +525,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The refId.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetContainerItemRefId(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +535,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The item count.
|
|
|
|
|
*/
|
|
|
|
|
static int GetContainerItemCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +545,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The charge.
|
|
|
|
|
*/
|
|
|
|
|
static int GetContainerItemCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +555,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The enchantment charge.
|
|
|
|
|
*/
|
|
|
|
|
static double GetContainerItemEnchantmentCharge(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +565,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The soul.
|
|
|
|
|
*/
|
|
|
|
|
static const char *GetContainerItemSoul(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +575,7 @@ public:
|
|
|
|
|
* \param itemIndex The index of the container item.
|
|
|
|
|
* \return The action count.
|
|
|
|
|
*/
|
|
|
|
|
static int GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +586,7 @@ public:
|
|
|
|
|
* \param index The index of the object.
|
|
|
|
|
* \return Whether the object has a container.
|
|
|
|
|
*/
|
|
|
|
|
static bool DoesObjectHaveContainer(unsigned int index) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION bool CDECL DoesObjectHaveContainer(unsigned int index) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the cell of the temporary object list stored on the server.
|
|
|
|
@ -597,7 +597,7 @@ public:
|
|
|
|
|
* \param cellDescription The description of the cell.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectListCell(const char* cellDescription) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListCell(const char* cellDescription) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the action type of the temporary object list stored on the server.
|
|
|
|
@ -605,7 +605,7 @@ public:
|
|
|
|
|
* \param action The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectListAction(unsigned char action) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListAction(unsigned char action) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the console command of the temporary object list stored on the server.
|
|
|
|
@ -616,7 +616,7 @@ public:
|
|
|
|
|
* \param consoleCommand The console command.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectListConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectListConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refId of the temporary object stored on the server.
|
|
|
|
@ -624,7 +624,7 @@ public:
|
|
|
|
|
* \param refId The refId.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectRefId(const char* refId) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRefId(const char* refId) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refNum of the temporary object stored on the server.
|
|
|
|
@ -638,7 +638,7 @@ public:
|
|
|
|
|
* \param refNum The refNum.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectRefNum(int refNum) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectRefNum(int refNum) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the mpNum of the temporary object stored on the server.
|
|
|
|
@ -653,7 +653,7 @@ public:
|
|
|
|
|
* \param mpNum The mpNum.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectMpNum(int mpNum) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectMpNum(int mpNum) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the object count of the temporary object stored on the server.
|
|
|
|
@ -663,7 +663,7 @@ public:
|
|
|
|
|
* \param count The object count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectCount(int count) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectCount(int count) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the charge of the temporary object stored on the server.
|
|
|
|
@ -673,7 +673,7 @@ public:
|
|
|
|
|
* \param charge The charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectCharge(int charge) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectCharge(int charge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the enchantment charge of the temporary object stored on the server.
|
|
|
|
@ -683,7 +683,7 @@ public:
|
|
|
|
|
* \param charge The enchantment charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the soul of the temporary object stored on the server.
|
|
|
|
@ -691,7 +691,7 @@ public:
|
|
|
|
|
* \param refId The soul.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectSoul(const char* soul) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSoul(const char* soul) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the gold value of the temporary object stored on the server.
|
|
|
|
@ -701,7 +701,7 @@ public:
|
|
|
|
|
* \param goldValue The gold value.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectGoldValue(int goldValue) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectGoldValue(int goldValue) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the scale of the temporary object stored on the server.
|
|
|
|
@ -711,7 +711,7 @@ public:
|
|
|
|
|
* \param scale The scale.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectScale(double scale) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectScale(double scale) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the object state of the temporary object stored on the server.
|
|
|
|
@ -721,7 +721,7 @@ public:
|
|
|
|
|
* \param objectState The object state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectState(bool objectState) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectState(bool objectState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the lock level of the temporary object stored on the server.
|
|
|
|
@ -729,7 +729,7 @@ public:
|
|
|
|
|
* \param lockLevel The lock level.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectLockLevel(int lockLevel) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectLockLevel(int lockLevel) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the summon duration of the temporary object stored on the server.
|
|
|
|
@ -737,7 +737,7 @@ public:
|
|
|
|
|
* \param summonDuration The summon duration.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectSummonDuration(float summonDuration) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSummonDuration(float summonDuration) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the disarm state of the temporary object stored on the server.
|
|
|
|
@ -745,7 +745,7 @@ public:
|
|
|
|
|
* \param disarmState The disarmState.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDisarmState(bool disarmState) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDisarmState(bool disarmState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the summon state of the temporary object stored on the server.
|
|
|
|
@ -756,7 +756,7 @@ public:
|
|
|
|
|
* \param summonState The summon state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectSummonState(bool summonState) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectSummonState(bool summonState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the position of the temporary object stored on the server.
|
|
|
|
@ -766,7 +766,7 @@ public:
|
|
|
|
|
* \param z The Z position.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectPosition(double x, double y, double z) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectPosition(double x, double y, double z) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the rotation of the temporary object stored on the server.
|
|
|
|
@ -776,7 +776,7 @@ public:
|
|
|
|
|
* \param z The Z rotation.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectRotation(double x, double y, double z) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +785,7 @@ public:
|
|
|
|
|
* \param pid The pid of the player.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectActivatingPid(unsigned short pid) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectActivatingPid(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door state of the temporary object stored on the server.
|
|
|
|
@ -795,7 +795,7 @@ public:
|
|
|
|
|
* \param doorState The door state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDoorState(int doorState) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorState(int doorState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the teleport state of the temporary object stored on the server.
|
|
|
|
@ -806,7 +806,7 @@ public:
|
|
|
|
|
* \param teleportState The teleport state.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDoorTeleportState(bool teleportState) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorTeleportState(bool teleportState) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door destination cell of the temporary object stored on the server.
|
|
|
|
@ -817,7 +817,7 @@ public:
|
|
|
|
|
* \param cellDescription The description of the cell.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDoorDestinationCell(const char* cellDescription) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetObjectDoorDestinationCell(const char* cellDescription) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the door destination position of the temporary object stored on the server.
|
|
|
|
@ -827,7 +827,7 @@ public:
|
|
|
|
|
* \param z The Z position.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDoorDestinationPosition(double x, double y, double z) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +839,7 @@ public:
|
|
|
|
|
* \param z The Z rotation.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetObjectDoorDestinationRotation(double x, double z) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +848,7 @@ public:
|
|
|
|
|
* \param pid The pid of the player.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetPlayerAsObject(unsigned short pid) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetPlayerAsObject(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the refId of the temporary container item stored on the server.
|
|
|
|
@ -856,7 +856,7 @@ public:
|
|
|
|
|
* \param refId The refId.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemRefId(const char* refId) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemRefId(const char* refId) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the item count of the temporary container item stored on the server.
|
|
|
|
@ -864,7 +864,7 @@ public:
|
|
|
|
|
* \param count The item count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemCount(int count) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemCount(int count) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the charge of the temporary container item stored on the server.
|
|
|
|
@ -872,7 +872,7 @@ public:
|
|
|
|
|
* \param charge The charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemCharge(int charge) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemCharge(int charge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the enchantment charge of the temporary container item stored on the server.
|
|
|
|
@ -880,7 +880,7 @@ public:
|
|
|
|
|
* \param charge The enchantment charge.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SetContainerItemEnchantmentCharge(double enchantmentCharge) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Set the soul of the temporary container item stored on the server.
|
|
|
|
@ -888,7 +888,7 @@ public:
|
|
|
|
|
* \param refId The soul.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemSoul(const char* soul) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +903,7 @@ public:
|
|
|
|
|
* \param actionCount The action count.
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SetContainerItemActionCountByIndex(unsigned int objectIndex, unsigned int itemIndex, int actionCount) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION 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 +914,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void AddObject() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL AddObject() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Add a copy of the server's temporary container item to the container changes of the
|
|
|
|
@ -925,7 +925,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void AddContainerItem() noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL AddContainerItem() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectActivate packet.
|
|
|
|
@ -936,7 +936,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectActivate(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectActivate(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectPlace packet.
|
|
|
|
@ -947,7 +947,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectPlace(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectPlace(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectSpawn packet.
|
|
|
|
@ -958,7 +958,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectSpawn(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectSpawn(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectDelete packet.
|
|
|
|
@ -968,7 +968,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectDelete(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectDelete(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectLock packet.
|
|
|
|
@ -979,7 +979,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectLock(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectLock(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectTrap packet.
|
|
|
|
@ -989,7 +989,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectTrap(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectTrap(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectScale packet.
|
|
|
|
@ -1000,7 +1000,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectScale(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectScale(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send an ObjectState packet.
|
|
|
|
@ -1011,7 +1011,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendObjectState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendObjectState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a DoorState packet.
|
|
|
|
@ -1022,7 +1022,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendDoorState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendDoorState(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a DoorDestination packet.
|
|
|
|
@ -1033,7 +1033,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendDoorDestination(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendDoorDestination(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a Container packet.
|
|
|
|
@ -1044,7 +1044,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendContainer(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendContainer(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a VideoPlay packet.
|
|
|
|
@ -1055,7 +1055,7 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendVideoPlay(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendVideoPlay(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Send a ConsoleCommand packet.
|
|
|
|
@ -1066,28 +1066,27 @@ public:
|
|
|
|
|
* to the packet (false by default).
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void SendConsoleCommand(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
EXPORT_APIFUNCTION void CDECL SendConsoleCommand(bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// All methods below are deprecated versions of methods from above
|
|
|
|
|
|
|
|
|
|
static void ReadLastObjectList() noexcept;
|
|
|
|
|
static void ReadLastEvent() noexcept;
|
|
|
|
|
static void InitializeObjectList(unsigned short pid) noexcept;
|
|
|
|
|
static void InitializeEvent(unsigned short pid) noexcept;
|
|
|
|
|
static void CopyLastObjectListToStore() noexcept;
|
|
|
|
|
static unsigned int GetObjectChangesSize() noexcept;
|
|
|
|
|
static unsigned char GetEventAction() noexcept;
|
|
|
|
|
static unsigned char GetEventContainerSubAction() noexcept;
|
|
|
|
|
static unsigned int GetObjectRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
static unsigned int GetObjectSummonerRefNumIndex(unsigned int index) noexcept;
|
|
|
|
|
static void SetEventCell(const char* cellDescription) noexcept;
|
|
|
|
|
static void SetEventAction(unsigned char action) noexcept;
|
|
|
|
|
static void SetEventConsoleCommand(const char* consoleCommand) noexcept;
|
|
|
|
|
static void SetObjectRefNumIndex(int refNum) noexcept;
|
|
|
|
|
static void AddWorldObject() noexcept;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_OBJECTAPI_HPP
|
|
|
|
|